UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

60 lines (54 loc) 1.77 kB
/* * 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 UnsettledProfit model module. * @module model/UnsettledProfit * @version v0 */ export class UnsettledProfit { /** * Constructs a new <code>UnsettledProfit</code>. * @alias module:model/UnsettledProfit * @class */ constructor() { } /** * Constructs a <code>UnsettledProfit</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/UnsettledProfit} obj Optional instance to populate. * @return {module:model/UnsettledProfit} The populated <code>UnsettledProfit</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new UnsettledProfit(); if (data.hasOwnProperty('todays_profit')) obj.todaysProfit = ApiClient.convertToType(data['todays_profit'], Object); if (data.hasOwnProperty('previous_days')) obj.previousDays = ApiClient.convertToType(data['previous_days'], Object); } return obj; } } /** * @member {Object} todaysProfit */ UnsettledProfit.prototype.todaysProfit = undefined; /** * @member {Object} previousDays */ UnsettledProfit.prototype.previousDays = undefined;