UNPKG

@gitchrisqueen/tdameritrade-api-js-client

Version:
182 lines (167 loc) 6.25 kB
/** * TD Ameritrade API - OAuth2 * This is replication of the TD Ameritrade API. * * OpenAPI spec version: 0.1.4 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * */ import ApiClient from '../ApiClient'; /** * The CashAccountInitialBalances model module. * @module model/CashAccountInitialBalances * @version 0.1.4 */ export default class CashAccountInitialBalances { /** * Constructs a new <code>CashAccountInitialBalances</code>. * @alias module:model/CashAccountInitialBalances * @class */ constructor() { } /** * Constructs a <code>CashAccountInitialBalances</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/CashAccountInitialBalances} obj Optional instance to populate. * @return {module:model/CashAccountInitialBalances} The populated <code>CashAccountInitialBalances</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new CashAccountInitialBalances(); if (data.hasOwnProperty('accruedInterest')) { obj['accruedInterest'] = ApiClient.convertToType(data['accruedInterest'], 'Number'); } if (data.hasOwnProperty('cashAvailableForTrading')) { obj['cashAvailableForTrading'] = ApiClient.convertToType(data['cashAvailableForTrading'], 'Number'); } if (data.hasOwnProperty('cashAvailableForWithdrawal')) { obj['cashAvailableForWithdrawal'] = ApiClient.convertToType(data['cashAvailableForWithdrawal'], 'Number'); } if (data.hasOwnProperty('cashBalance')) { obj['cashBalance'] = ApiClient.convertToType(data['cashBalance'], 'Number'); } if (data.hasOwnProperty('bondValue')) { obj['bondValue'] = ApiClient.convertToType(data['bondValue'], 'Number'); } if (data.hasOwnProperty('cashReceipts')) { obj['cashReceipts'] = ApiClient.convertToType(data['cashReceipts'], 'Number'); } if (data.hasOwnProperty('liquidationValue')) { obj['liquidationValue'] = ApiClient.convertToType(data['liquidationValue'], 'Number'); } if (data.hasOwnProperty('longOptionMarketValue')) { obj['longOptionMarketValue'] = ApiClient.convertToType(data['longOptionMarketValue'], 'Number'); } if (data.hasOwnProperty('longStockValue')) { obj['longStockValue'] = ApiClient.convertToType(data['longStockValue'], 'Number'); } if (data.hasOwnProperty('moneyMarketFund')) { obj['moneyMarketFund'] = ApiClient.convertToType(data['moneyMarketFund'], 'Number'); } if (data.hasOwnProperty('mutualFundValue')) { obj['mutualFundValue'] = ApiClient.convertToType(data['mutualFundValue'], 'Number'); } if (data.hasOwnProperty('shortOptionMarketValue')) { obj['shortOptionMarketValue'] = ApiClient.convertToType(data['shortOptionMarketValue'], 'Number'); } if (data.hasOwnProperty('shortStockValue')) { obj['shortStockValue'] = ApiClient.convertToType(data['shortStockValue'], 'Number'); } if (data.hasOwnProperty('isInCall')) { obj['isInCall'] = ApiClient.convertToType(data['isInCall'], 'Boolean'); } if (data.hasOwnProperty('unsettledCash')) { obj['unsettledCash'] = ApiClient.convertToType(data['unsettledCash'], 'Number'); } if (data.hasOwnProperty('cashDebitCallValue')) { obj['cashDebitCallValue'] = ApiClient.convertToType(data['cashDebitCallValue'], 'Number'); } if (data.hasOwnProperty('pendingDeposits')) { obj['pendingDeposits'] = ApiClient.convertToType(data['pendingDeposits'], 'Number'); } if (data.hasOwnProperty('accountValue')) { obj['accountValue'] = ApiClient.convertToType(data['accountValue'], 'Number'); } } return obj; } /** * @member {Number} accruedInterest */ 'accruedInterest' = undefined; /** * @member {Number} cashAvailableForTrading */ 'cashAvailableForTrading' = undefined; /** * @member {Number} cashAvailableForWithdrawal */ 'cashAvailableForWithdrawal' = undefined; /** * @member {Number} cashBalance */ 'cashBalance' = undefined; /** * @member {Number} bondValue */ 'bondValue' = undefined; /** * @member {Number} cashReceipts */ 'cashReceipts' = undefined; /** * @member {Number} liquidationValue */ 'liquidationValue' = undefined; /** * @member {Number} longOptionMarketValue */ 'longOptionMarketValue' = undefined; /** * @member {Number} longStockValue */ 'longStockValue' = undefined; /** * @member {Number} moneyMarketFund */ 'moneyMarketFund' = undefined; /** * @member {Number} mutualFundValue */ 'mutualFundValue' = undefined; /** * @member {Number} shortOptionMarketValue */ 'shortOptionMarketValue' = undefined; /** * @member {Number} shortStockValue */ 'shortStockValue' = undefined; /** * @member {Boolean} isInCall * @default false */ 'isInCall' = false; /** * @member {Number} unsettledCash */ 'unsettledCash' = undefined; /** * @member {Number} cashDebitCallValue */ 'cashDebitCallValue' = undefined; /** * @member {Number} pendingDeposits */ 'pendingDeposits' = undefined; /** * @member {Number} accountValue */ 'accountValue' = undefined; }