UNPKG

@factset/sdk-factsetglobalprices

Version:

FactSet Global Prices client library for JavaScript

93 lines (85 loc) 3.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); 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.8.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 ErrorResponseSubErrors model module. * @module model/ErrorResponseSubErrors */ class ErrorResponseSubErrors { /** * Constructs a new <code>ErrorResponseSubErrors</code>. * subErrors related to the error message. Null if not applicable. * @alias module:model/ErrorResponseSubErrors */ constructor() { ErrorResponseSubErrors.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>ErrorResponseSubErrors</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/ErrorResponseSubErrors} obj Optional instance to populate. * @return {module:model/ErrorResponseSubErrors} The populated <code>ErrorResponseSubErrors</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new ErrorResponseSubErrors(); if (data.hasOwnProperty('object')) { obj['object'] = _ApiClient.default.convertToType(data['object'], 'String'); } if (data.hasOwnProperty('field')) { obj['field'] = _ApiClient.default.convertToType(data['field'], 'String'); } if (data.hasOwnProperty('message')) { obj['message'] = _ApiClient.default.convertToType(data['message'], 'String'); } if (data.hasOwnProperty('rejectedValue')) { obj['rejectedValue'] = _ApiClient.default.convertToType(data['rejectedValue'], ['String']); } } return obj; } } /** * the operation ID * @member {String} object */ ErrorResponseSubErrors.prototype['object'] = undefined; /** * Parameter Field Name * @member {String} field */ ErrorResponseSubErrors.prototype['field'] = undefined; /** * Error message * @member {String} message */ ErrorResponseSubErrors.prototype['message'] = undefined; /** * Rejected Values in an Array * @member {Array.<String>} rejectedValue */ ErrorResponseSubErrors.prototype['rejectedValue'] = undefined; var _default = exports.default = ErrorResponseSubErrors;