UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

56 lines (51 loc) 1.78 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 GttCancelOrderRequest model module. * @module model/GttCancelOrderRequest * @version v0 */ export class GttCancelOrderRequest { /** * Constructs a new <code>GttCancelOrderRequest</code>. * @alias module:model/GttCancelOrderRequest * @class * @param gttOrderId {String} Unique identifier of the GTT order to be cancelled */ constructor(gttOrderId) { this.gttOrderId = gttOrderId; } /** * Constructs a <code>GttCancelOrderRequest</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/GttCancelOrderRequest} obj Optional instance to populate. * @return {module:model/GttCancelOrderRequest} The populated <code>GttCancelOrderRequest</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new GttCancelOrderRequest(); if (data.hasOwnProperty('gtt_order_id')) obj.gttOrderId = ApiClient.convertToType(data['gtt_order_id'], 'String'); } return obj; } } /** * Unique identifier of the GTT order to be cancelled * @member {String} gttOrderId */ GttCancelOrderRequest.prototype.gttOrderId = undefined;