UNPKG

@factset/sdk-portfolioreportingbatcher

Version:

Portfolio Reporting Batcher client library for JavaScript

93 lines (85 loc) 3.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _Calendar = _interopRequireDefault(require("./Calendar")); var _Frequency = _interopRequireDefault(require("./Frequency")); 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.2.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 JobOverridesCombinationsRootDateRange model module. * @module model/JobOverridesCombinationsRootDateRange */ class JobOverridesCombinationsRootDateRange { /** * Constructs a new <code>JobOverridesCombinationsRootDateRange</code>. * Used if the job needs to be executed for many dates periodically spaced, used for jobs types PA, ADF and Vault. Please see OA page 23173 for more details. * @alias module:model/JobOverridesCombinationsRootDateRange */ constructor() { JobOverridesCombinationsRootDateRange.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>JobOverridesCombinationsRootDateRange</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/JobOverridesCombinationsRootDateRange} obj Optional instance to populate. * @return {module:model/JobOverridesCombinationsRootDateRange} The populated <code>JobOverridesCombinationsRootDateRange</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new JobOverridesCombinationsRootDateRange(); if (data.hasOwnProperty('end')) { obj['end'] = _ApiClient.default.convertToType(data['end'], 'Date'); } if (data.hasOwnProperty('start')) { obj['start'] = _ApiClient.default.convertToType(data['start'], 'Date'); } if (data.hasOwnProperty('calendar')) { obj['calendar'] = _Calendar.default.constructFromObject(data['calendar']); } if (data.hasOwnProperty('frequency')) { obj['frequency'] = _Frequency.default.constructFromObject(data['frequency']); } } return obj; } } /** * The end date in format YYYY-MM-DD * @member {Date} end */ JobOverridesCombinationsRootDateRange.prototype['end'] = undefined; /** * The start date in format YYYY-MM-DD * @member {Date} start */ JobOverridesCombinationsRootDateRange.prototype['start'] = undefined; /** * @member {module:model/Calendar} calendar */ JobOverridesCombinationsRootDateRange.prototype['calendar'] = undefined; /** * @member {module:model/Frequency} frequency */ JobOverridesCombinationsRootDateRange.prototype['frequency'] = undefined; var _default = exports.default = JobOverridesCombinationsRootDateRange;