upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
64 lines (59 loc) • 1.94 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CashFlowEntry = 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 CashFlowEntry model module.
* @module model/CashFlowEntry
* @version v0
*/
class CashFlowEntry {
/**
* Constructs a new <code>CashFlowEntry</code>.
* @alias module:model/CashFlowEntry
* @class
*/
constructor() {}
/**
* Constructs a <code>CashFlowEntry</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/CashFlowEntry} obj Optional instance to populate.
* @return {module:model/CashFlowEntry} The populated <code>CashFlowEntry</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new CashFlowEntry();
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 cash flow: Operating, Investing, or Financing
* @member {Object} category
*/
exports.CashFlowEntry = CashFlowEntry;
CashFlowEntry.prototype.category = undefined;
/**
* Historical cash flow values for this type
* @member {Object} history
*/
CashFlowEntry.prototype.history = undefined;