UNPKG

@factset/sdk-portfolioreportingbatcher

Version:

Portfolio Reporting Batcher client library for JavaScript

102 lines (93 loc) 3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _ErrorSource = _interopRequireDefault(require("./ErrorSource")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } /** * Portfolio Reporting Batcher * The Portfolio Reporting Batcher (PRB) API allows clients to systematically leverage functionalities of the PRB application. * * The version of the OpenAPI document: 1.0.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 Error model module. * @module model/Error */ class Error { /** * Constructs a new <code>Error</code>. * Full details of any error * @alias module:model/Error */ constructor() { Error.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>Error</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/Error} obj Optional instance to populate. * @return {module:model/Error} The populated <code>Error</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new Error(); if (data.hasOwnProperty('code')) { obj['code'] = _ApiClient.default.convertToType(data['code'], 'String'); } if (data.hasOwnProperty('detail')) { obj['detail'] = _ApiClient.default.convertToType(data['detail'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = _ApiClient.default.convertToType(data['id'], 'String'); } if (data.hasOwnProperty('source')) { obj['source'] = _ErrorSource.default.constructFromObject(data['source']); } if (data.hasOwnProperty('title')) { obj['title'] = _ApiClient.default.convertToType(data['title'], 'String'); } } return obj; } } /** * The error code * @member {String} code */ Error.prototype['code'] = undefined; /** * Explanation specific to the occurrence of the error * @member {String} detail */ Error.prototype['detail'] = undefined; /** * Identifier for the error (the Chain ID) * @member {String} id */ Error.prototype['id'] = undefined; /** * @member {module:model/ErrorSource} source */ Error.prototype['source'] = undefined; /** * The title of the error * @member {String} title */ Error.prototype['title'] = undefined; var _default = exports.default = Error;