UNPKG

@factset/sdk-securityexplanation

Version:

Security Explanation client library for JavaScript

67 lines (62 loc) 2.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _APIError = _interopRequireDefault(require("./APIError")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } /** * Security Explanation API * Allow clients to use Security Explanation through APIs. * * The version of the OpenAPI document: 1.1.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 APIClientErrorResponse model module. * @module model/APIClientErrorResponse */ class APIClientErrorResponse { /** * Constructs a new <code>APIClientErrorResponse</code>. * The response schema for errors * @alias module:model/APIClientErrorResponse */ constructor() { APIClientErrorResponse.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>APIClientErrorResponse</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/APIClientErrorResponse} obj Optional instance to populate. * @return {module:model/APIClientErrorResponse} The populated <code>APIClientErrorResponse</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new APIClientErrorResponse(); if (data.hasOwnProperty('errors')) { obj['errors'] = _ApiClient.default.convertToType(data['errors'], [_APIError.default]); } } return obj; } } /** * List of errors * @member {Array.<module:model/APIError>} errors */ APIClientErrorResponse.prototype['errors'] = undefined; var _default = exports.default = APIClientErrorResponse;