UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

86 lines (77 loc) 2.57 kB
/* * 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. * */ import {ApiClient} from '../ApiClient'; /** * The BalanceSheetData model module. * @module model/BalanceSheetData * @version v0 */ export class BalanceSheetData { /** * Constructs a new <code>BalanceSheetData</code>. * @alias module:model/BalanceSheetData * @class */ constructor() { } /** * Constructs a <code>BalanceSheetData</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/BalanceSheetData} obj Optional instance to populate. * @return {module:model/BalanceSheetData} The populated <code>BalanceSheetData</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new BalanceSheetData(); if (data.hasOwnProperty('type')) obj.type = ApiClient.convertToType(data['type'], Object); if (data.hasOwnProperty('time_period')) obj.timePeriod = ApiClient.convertToType(data['time_period'], Object); if (data.hasOwnProperty('units_in')) obj.unitsIn = ApiClient.convertToType(data['units_in'], Object); if (data.hasOwnProperty('history')) obj.history = ApiClient.convertToType(data['history'], Object); if (data.hasOwnProperty('full_statement')) obj.fullStatement = ApiClient.convertToType(data['full_statement'], Object); } return obj; } } /** * Report type: consolidated or standalone * @member {Object} type */ BalanceSheetData.prototype.type = undefined; /** * Time period: yearly or quarterly * @member {Object} timePeriod */ BalanceSheetData.prototype.timePeriod = undefined; /** * Unit of monetary values * @member {Object} unitsIn */ BalanceSheetData.prototype.unitsIn = undefined; /** * Historical balance sheet entries * @member {Object} history */ BalanceSheetData.prototype.history = undefined; /** * List of financial statement balance sheet items with historical values * @member {Object} fullStatement */ BalanceSheetData.prototype.fullStatement = undefined;