@factset/sdk-factsetglobalprices
Version:
FactSet Global Prices client library for JavaScript
110 lines (100 loc) • 3.81 kB
JavaScript
;
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.11.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 EventCount model module.
* @module model/EventCount
*/
class EventCount {
/**
* Constructs a new <code>EventCount</code>.
* @alias module:model/EventCount
*/
constructor() {
EventCount.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>EventCount</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/EventCount} obj Optional instance to populate.
* @return {module:model/EventCount} The populated <code>EventCount</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new EventCount();
if (data.hasOwnProperty('eventDate') && obj['eventDate'] === undefined) {
obj['eventDate'] = _ApiClient.default.convertToType(data['eventDate'], 'Date');
}
if (data.hasOwnProperty('dividends') && obj['dividends'] === undefined) {
obj['dividends'] = _ApiClient.default.convertToType(data['dividends'], 'Number');
}
if (data.hasOwnProperty('stockDistributions') && obj['stockDistributions'] === undefined) {
obj['stockDistributions'] = _ApiClient.default.convertToType(data['stockDistributions'], 'Number');
}
if (data.hasOwnProperty('rightsIssues') && obj['rightsIssues'] === undefined) {
obj['rightsIssues'] = _ApiClient.default.convertToType(data['rightsIssues'], 'Number');
}
if (data.hasOwnProperty('spinOffs') && obj['spinOffs'] === undefined) {
obj['spinOffs'] = _ApiClient.default.convertToType(data['spinOffs'], 'Number');
}
if (data.hasOwnProperty('splits') && obj['splits'] === undefined) {
obj['splits'] = _ApiClient.default.convertToType(data['splits'], 'Number');
}
}
return obj;
}
}
/**
* The date of the event in **YYYY-MM-DD** format.
* @member {Date} eventDate
*/
EventCount.prototype['eventDate'] = undefined;
/**
* The number of dividend events for the given date.
* @member {Number} dividends
*/
EventCount.prototype['dividends'] = undefined;
/**
* The number of stock distribution events for the given date.
* @member {Number} stockDistributions
*/
EventCount.prototype['stockDistributions'] = undefined;
/**
* The number of rights issue events for the given date.
* @member {Number} rightsIssues
*/
EventCount.prototype['rightsIssues'] = undefined;
/**
* The number of spin-off events for the given date.
* @member {Number} spinOffs
*/
EventCount.prototype['spinOffs'] = undefined;
/**
* The number of split events for the given date.
* @member {Number} splits
*/
EventCount.prototype['splits'] = undefined;
var _default = exports.default = EventCount;