upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
81 lines (72 loc) • 2.47 kB
JavaScript
/*
* 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 CashBreakdown model module.
* @module model/CashBreakdown
* @version v0
*/
export 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.convertToType(data['opening_balance'], Object);
if (data.hasOwnProperty('added_today'))
obj.addedToday = ApiClient.convertToType(data['added_today'], Object);
if (data.hasOwnProperty('withdrawn_today'))
obj.withdrawnToday = ApiClient.convertToType(data['withdrawn_today'], Object);
if (data.hasOwnProperty('amount_from_stock_sale'))
obj.amountFromStockSale = ApiClient.convertToType(data['amount_from_stock_sale'], Object);
if (data.hasOwnProperty('unpaid_charges'))
obj.unpaidCharges = ApiClient.convertToType(data['unpaid_charges'], Object);
}
return obj;
}
}
/**
* @member {Object} openingBalance
*/
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;