UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

80 lines (72 loc) 2.62 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CashBreakdown = 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 CashBreakdown model module. * @module model/CashBreakdown * @version v0 */ class CashBreakdown { /** * Constructs a new <code>CashBreakdown</code>. * @alias module:model/CashBreakdown * @class */ constructor() {} /** * Constructs a <code>CashBreakdown</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/CashBreakdown} obj Optional instance to populate. * @return {module:model/CashBreakdown} The populated <code>CashBreakdown</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new CashBreakdown(); if (data.hasOwnProperty('opening_balance')) obj.openingBalance = _ApiClient.ApiClient.convertToType(data['opening_balance'], Object); if (data.hasOwnProperty('added_today')) obj.addedToday = _ApiClient.ApiClient.convertToType(data['added_today'], Object); if (data.hasOwnProperty('withdrawn_today')) obj.withdrawnToday = _ApiClient.ApiClient.convertToType(data['withdrawn_today'], Object); if (data.hasOwnProperty('amount_from_stock_sale')) obj.amountFromStockSale = _ApiClient.ApiClient.convertToType(data['amount_from_stock_sale'], Object); if (data.hasOwnProperty('unpaid_charges')) obj.unpaidCharges = _ApiClient.ApiClient.convertToType(data['unpaid_charges'], Object); } return obj; } } /** * @member {Object} openingBalance */ exports.CashBreakdown = CashBreakdown; CashBreakdown.prototype.openingBalance = undefined; /** * @member {Object} addedToday */ CashBreakdown.prototype.addedToday = undefined; /** * @member {Object} withdrawnToday */ CashBreakdown.prototype.withdrawnToday = undefined; /** * @member {Object} amountFromStockSale */ CashBreakdown.prototype.amountFromStockSale = undefined; /** * @member {Object} unpaidCharges */ CashBreakdown.prototype.unpaidCharges = undefined;