UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

69 lines (64 loc) 2.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InitiatePayoutRequest = 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.79 * * Do not edit the class manually. * */ /** * The InitiatePayoutRequest model module. * @module model/InitiatePayoutRequest * @version v0 */ class InitiatePayoutRequest { /** * Constructs a new <code>InitiatePayoutRequest</code>. * @alias module:model/InitiatePayoutRequest * @class * @param mode {Object} Withdrawal mode. NEFT or IMPS * @param amount {Object} Withdrawal amount in INR */ constructor(mode, amount) { this.mode = mode; this.amount = amount; } /** * Constructs a <code>InitiatePayoutRequest</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/InitiatePayoutRequest} obj Optional instance to populate. * @return {module:model/InitiatePayoutRequest} The populated <code>InitiatePayoutRequest</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new InitiatePayoutRequest(); if (data.hasOwnProperty('mode')) obj.mode = _ApiClient.ApiClient.convertToType(data['mode'], Object); if (data.hasOwnProperty('amount')) obj.amount = _ApiClient.ApiClient.convertToType(data['amount'], Object); } return obj; } } /** * Withdrawal mode. NEFT or IMPS * @member {Object} mode */ exports.InitiatePayoutRequest = InitiatePayoutRequest; InitiatePayoutRequest.prototype.mode = undefined; /** * Withdrawal amount in INR * @member {Object} amount */ InitiatePayoutRequest.prototype.amount = undefined;