UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

64 lines (59 loc) 2.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PayoutModesResponse = void 0; var _ApiClient = require("../ApiClient"); var _PayoutModesData = require("./PayoutModesData"); /* * 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.79 * * Do not edit the class manually. * */ /** * The PayoutModesResponse model module. * @module model/PayoutModesResponse * @version v0 */ class PayoutModesResponse { /** * Constructs a new <code>PayoutModesResponse</code>. * @alias module:model/PayoutModesResponse * @class */ constructor() {} /** * Constructs a <code>PayoutModesResponse</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/PayoutModesResponse} obj Optional instance to populate. * @return {module:model/PayoutModesResponse} The populated <code>PayoutModesResponse</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new PayoutModesResponse(); if (data.hasOwnProperty('status')) obj.status = _ApiClient.ApiClient.convertToType(data['status'], Object); if (data.hasOwnProperty('data')) obj.data = _PayoutModesData.PayoutModesData.constructFromObject(data['data']); } return obj; } } /** * @member {Object} status */ exports.PayoutModesResponse = PayoutModesResponse; PayoutModesResponse.prototype.status = undefined; /** * Available payout modes with eligibility details * @member {module:model/PayoutModesData} data */ PayoutModesResponse.prototype.data = undefined;