UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

86 lines (77 loc) 2.55 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 CashFlowData model module. * @module model/CashFlowData * @version v0 */ export class CashFlowData { /** * Constructs a new <code>CashFlowData</code>. * @alias module:model/CashFlowData * @class */ constructor() { } /** * Constructs a <code>CashFlowData</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/CashFlowData} obj Optional instance to populate. * @return {module:model/CashFlowData} The populated <code>CashFlowData</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new CashFlowData(); 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('cash_flow')) obj.cashFlow = ApiClient.convertToType(data['cash_flow'], Object); if (data.hasOwnProperty('full_statement')) obj.fullStatement = ApiClient.convertToType(data['full_statement'], Object); } return obj; } } /** * Report type: consolidated or standalone * @member {Object} type */ CashFlowData.prototype.type = undefined; /** * Time period: yearly or quarterly * @member {Object} timePeriod */ CashFlowData.prototype.timePeriod = undefined; /** * Unit of monetary values * @member {Object} unitsIn */ CashFlowData.prototype.unitsIn = undefined; /** * Cash flow entries grouped by type (Operating, Investing, Financing) * @member {Object} cashFlow */ CashFlowData.prototype.cashFlow = undefined; /** * List of financial statement cash flow items with historical values * @member {Object} fullStatement */ CashFlowData.prototype.fullStatement = undefined;