UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

64 lines (59 loc) 2.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IncomeStatementEntry = 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 IncomeStatementEntry model module. * @module model/IncomeStatementEntry * @version v0 */ class IncomeStatementEntry { /** * Constructs a new <code>IncomeStatementEntry</code>. * @alias module:model/IncomeStatementEntry * @class */ constructor() {} /** * Constructs a <code>IncomeStatementEntry</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/IncomeStatementEntry} obj Optional instance to populate. * @return {module:model/IncomeStatementEntry} The populated <code>IncomeStatementEntry</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new IncomeStatementEntry(); if (data.hasOwnProperty('category')) obj.category = _ApiClient.ApiClient.convertToType(data['category'], Object); if (data.hasOwnProperty('history')) obj.history = _ApiClient.ApiClient.convertToType(data['history'], Object); } return obj; } } /** * Type of income statement entry: Revenue, Operating profit, or Net profit * @member {Object} category */ exports.IncomeStatementEntry = IncomeStatementEntry; IncomeStatementEntry.prototype.category = undefined; /** * Historical values for this income statement type * @member {Object} history */ IncomeStatementEntry.prototype.history = undefined;