upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
65 lines (60 loc) • 2.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.IndieUserInitTokenData = 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.66
*
* Do not edit the class manually.
*
*/
/**
* The IndieUserInitTokenData model module.
* @module model/IndieUserInitTokenData
* @version v0
*/
class IndieUserInitTokenData {
/**
* Constructs a new <code>IndieUserInitTokenData</code>.
* Init token response data for indie user
* @alias module:model/IndieUserInitTokenData
* @class
*/
constructor() {}
/**
* Constructs a <code>IndieUserInitTokenData</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/IndieUserInitTokenData} obj Optional instance to populate.
* @return {module:model/IndieUserInitTokenData} The populated <code>IndieUserInitTokenData</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new IndieUserInitTokenData();
if (data.hasOwnProperty('authorization_expiry')) obj.authorizationExpiry = _ApiClient.ApiClient.convertToType(data['authorization_expiry'], 'String');
if (data.hasOwnProperty('notifier_url')) obj.notifierUrl = _ApiClient.ApiClient.convertToType(data['notifier_url'], 'String');
}
return obj;
}
}
/**
* authorize token expiry
* @member {String} authorizationExpiry
*/
exports.IndieUserInitTokenData = IndieUserInitTokenData;
IndieUserInitTokenData.prototype.authorizationExpiry = undefined;
/**
* notifier webhook url
* @member {String} notifierUrl
*/
IndieUserInitTokenData.prototype.notifierUrl = undefined;