UNPKG

@gitchrisqueen/tdameritrade-api-js-client

Version:
93 lines (82 loc) 1.97 kB
/* * 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.LotMethod = factory(root.GitChrisQueen_TDA_JS.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * Enum class LotMethod. * @enum {String} * @readonly */ var exports = { /** * value: "FIFO" * @const */ FIFO: "FIFO", /** * value: "LIFO" * @const */ LIFO: "LIFO", /** * value: "HIGH_COST" * @const */ HIGH_COST: "HIGH_COST", /** * value: "LOW_COST" * @const */ LOW_COST: "LOW_COST", /** * value: "MINIMUM_TAX" * @const */ MINIMUM_TAX: "MINIMUM_TAX", /** * value: "AVERAGE_COST" * @const */ AVERAGE_COST: "AVERAGE_COST", /** * value: "NONE" * @const */ NONE: "NONE" }; /** * Returns a <code>LotMethod</code> enum value from a JavaScript object name. * @param {Object} data The plain JavaScript object containing the name of the enum value. * @return {module:model/LotMethod} The enum <code>LotMethod</code> value. */ exports.constructFromObject = function(object) { return object; } return exports; }));