@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
99 lines (87 loc) • 2.96 kB
JavaScript
/*
* TD Ameritrade API - OAuth2
* This is replication of the TD Ameritrade API.
*
* OpenAPI spec version: 0.1.4
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.14
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'));
} else {
// Browser globals (root is window)
if (!root.GitChrisQueen_TDA_JS) {
root.GitChrisQueen_TDA_JS = {};
}
root.GitChrisQueen_TDA_JS.ExecutionExecutionLegs = factory(root.GitChrisQueen_TDA_JS.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The ExecutionExecutionLegs model module.
* @module model/ExecutionExecutionLegs
* @version 0.1.4
*/
/**
* Constructs a new <code>ExecutionExecutionLegs</code>.
* @alias module:model/ExecutionExecutionLegs
* @class
*/
var exports = function() {
};
/**
* Constructs a <code>ExecutionExecutionLegs</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/ExecutionExecutionLegs} obj Optional instance to populate.
* @return {module:model/ExecutionExecutionLegs} The populated <code>ExecutionExecutionLegs</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('legId'))
obj.legId = ApiClient.convertToType(data['legId'], 'Number');
if (data.hasOwnProperty('mismarkedQuantity'))
obj.mismarkedQuantity = ApiClient.convertToType(data['mismarkedQuantity'], 'Number');
if (data.hasOwnProperty('price'))
obj.price = ApiClient.convertToType(data['price'], 'Number');
if (data.hasOwnProperty('quantity'))
obj.quantity = ApiClient.convertToType(data['quantity'], 'Number');
if (data.hasOwnProperty('time'))
obj.time = ApiClient.convertToType(data['time'], 'Date');
}
return obj;
}
/**
* @member {Number} legId
*/
exports.prototype.legId = undefined;
/**
* @member {Number} mismarkedQuantity
*/
exports.prototype.mismarkedQuantity = undefined;
/**
* @member {Number} price
*/
exports.prototype.price = undefined;
/**
* @member {Number} quantity
*/
exports.prototype.quantity = undefined;
/**
* @member {Date} time
*/
exports.prototype.time = undefined;
return exports;
}));