UNPKG

@factset/sdk-factsetglobalprices

Version:

FactSet Global Prices client library for JavaScript

78 lines (72 loc) 3.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _Batch = _interopRequireDefault(require("./Batch")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } /** * FactSet Global Prices API * The FactSet Global Prices API provides end of day market pricing content using cloud and microservices technology, encompassing both pricing as well as corporate actions and events data.</p> * * The version of the OpenAPI document: 1.11.0 * Contact: api@factset.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ /** * The MarketValueRequestBody model module. * @module model/MarketValueRequestBody */ class MarketValueRequestBody { /** * Constructs a new <code>MarketValueRequestBody</code>. * Market Value Request Body * @alias module:model/MarketValueRequestBody * @param ids {Array.<String>} The requested list of security identifiers. Accepted ID types include Market Tickers, SEDOL, ISINs, CUSIPs, or FactSet Permanent IDs. Requests are limited to 50 IDs for non-batch requests and 400 for batch requests. */ constructor(ids) { MarketValueRequestBody.initialize(this, ids); } /** * Initializes the fields of this object. * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ static initialize(obj, ids) { obj['ids'] = ids; } /** * Constructs a <code>MarketValueRequestBody</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/MarketValueRequestBody} obj Optional instance to populate. * @return {module:model/MarketValueRequestBody} The populated <code>MarketValueRequestBody</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new MarketValueRequestBody(); if (data.hasOwnProperty('ids') && obj['ids'] === undefined) { obj['ids'] = _ApiClient.default.convertToType(data['ids'], ['String']); } if (data.hasOwnProperty('batch') && obj['batch'] === undefined) { obj['batch'] = _Batch.default.constructFromObject(data['batch']); } } return obj; } } /** * The requested list of security identifiers. Accepted ID types include Market Tickers, SEDOL, ISINs, CUSIPs, or FactSet Permanent IDs. Requests are limited to 50 IDs for non-batch requests and 400 for batch requests. * @member {Array.<String>} ids */ MarketValueRequestBody.prototype['ids'] = undefined; /** * @member {module:model/Batch} batch */ MarketValueRequestBody.prototype['batch'] = undefined; var _default = exports.default = MarketValueRequestBody;