upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
85 lines (77 loc) • 2.89 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.IncomeStatementData = void 0;
var _ApiClient = require("../ApiClient");
/*
* OpenAPI definition
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 3.0.66
*
* Do not edit the class manually.
*
*/
/**
* The IncomeStatementData model module.
* @module model/IncomeStatementData
* @version v0
*/
class IncomeStatementData {
/**
* Constructs a new <code>IncomeStatementData</code>.
* @alias module:model/IncomeStatementData
* @class
*/
constructor() {}
/**
* Constructs a <code>IncomeStatementData</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/IncomeStatementData} obj Optional instance to populate.
* @return {module:model/IncomeStatementData} The populated <code>IncomeStatementData</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new IncomeStatementData();
if (data.hasOwnProperty('type')) obj.type = _ApiClient.ApiClient.convertToType(data['type'], Object);
if (data.hasOwnProperty('time_period')) obj.timePeriod = _ApiClient.ApiClient.convertToType(data['time_period'], Object);
if (data.hasOwnProperty('units_in')) obj.unitsIn = _ApiClient.ApiClient.convertToType(data['units_in'], Object);
if (data.hasOwnProperty('income_statement')) obj.incomeStatement = _ApiClient.ApiClient.convertToType(data['income_statement'], Object);
if (data.hasOwnProperty('full_statement')) obj.fullStatement = _ApiClient.ApiClient.convertToType(data['full_statement'], Object);
}
return obj;
}
}
/**
* Report type: consolidated or standalone
* @member {Object} type
*/
exports.IncomeStatementData = IncomeStatementData;
IncomeStatementData.prototype.type = undefined;
/**
* Time period: yearly or quarterly
* @member {Object} timePeriod
*/
IncomeStatementData.prototype.timePeriod = undefined;
/**
* Unit of monetary values
* @member {Object} unitsIn
*/
IncomeStatementData.prototype.unitsIn = undefined;
/**
* Income statement entries grouped by type (Revenue, Operating profit, Net profit)
* @member {Object} incomeStatement
*/
IncomeStatementData.prototype.incomeStatement = undefined;
/**
* List of financial statement income statement items with historical values
* @member {Object} fullStatement
*/
IncomeStatementData.prototype.fullStatement = undefined;