UNPKG

@factset/sdk-symbology

Version:

Symbology client library for JavaScript

101 lines (92 loc) 3.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _ErrorResponseSubErrors = _interopRequireDefault(require("./ErrorResponseSubErrors")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } /** * FactSet Symbology API * The FactSet Symbology API provides symbol resolution services, allowing clients to translate market identifiers into various symbology types such as, FactSet Permanent Identifiers, CUSIP, ISIN, SEDOL, Tickers, and LEIs. <p>Factset's Symbology API sits at the center of its hub-and-spoke data model, enabling you to quickly harmonize the expanding catalog of Content APIs.</p><p>This API is rate-limited to 10 requests per second and 10 concurrent requests per user.</p> * * The version of the OpenAPI document: 3.5.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 ErrorResponse model module. * @module model/ErrorResponse */ class ErrorResponse { /** * Constructs a new <code>ErrorResponse</code>. * @alias module:model/ErrorResponse */ constructor() { ErrorResponse.initialize(this); } /** * 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) {} /** * Constructs a <code>ErrorResponse</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/ErrorResponse} obj Optional instance to populate. * @return {module:model/ErrorResponse} The populated <code>ErrorResponse</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new ErrorResponse(); if (data.hasOwnProperty('status') && obj['status'] === undefined) { obj['status'] = _ApiClient.default.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('timestamp') && obj['timestamp'] === undefined) { obj['timestamp'] = _ApiClient.default.convertToType(data['timestamp'], 'Date'); } if (data.hasOwnProperty('path') && obj['path'] === undefined) { obj['path'] = _ApiClient.default.convertToType(data['path'], 'String'); } if (data.hasOwnProperty('message') && obj['message'] === undefined) { obj['message'] = _ApiClient.default.convertToType(data['message'], 'String'); } if (data.hasOwnProperty('subErrors') && obj['subErrors'] === undefined) { obj['subErrors'] = _ErrorResponseSubErrors.default.constructFromObject(data['subErrors']); } } return obj; } } /** * status * @member {String} status */ ErrorResponse.prototype['status'] = undefined; /** * timestamp in YYYY-MM-DD HH:MM:SS.SSS * @member {Date} timestamp */ ErrorResponse.prototype['timestamp'] = undefined; /** * The Endpoint path {package}/version/{endpoint} * @member {String} path */ ErrorResponse.prototype['path'] = undefined; /** * The plain text error message * @member {String} message */ ErrorResponse.prototype['message'] = undefined; /** * @member {module:model/ErrorResponseSubErrors} subErrors */ ErrorResponse.prototype['subErrors'] = undefined; var _default = exports.default = ErrorResponse;