finerio-pfm-unnax
Version:
This SDK lets you connect to [Finerio PFM API Unnax](http://ec2-3-16-174-50.us-east-2.compute.amazonaws.com:8082/swagger-ui/index.html#/) in an easier way.
51 lines (50 loc) • 1.29 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class FinancialEntity {
constructor({ id, name, code, imagePath, dateCreated, lastUpdated, }) {
this._id = id;
this._name = name;
this._code = code;
this._imagePath = imagePath || "";
this._dateCreated = dateCreated ? dateCreated : null;
this._lastUpdated = lastUpdated ? lastUpdated : null;
}
get id() {
return this._id;
}
get name() {
return this._name;
}
set name(value) {
this._name = value;
}
get imagePath() {
return this._imagePath;
}
set imagePath(value) {
this._imagePath = value;
}
get code() {
return this._code;
}
set code(value) {
this._code = value;
}
get dateCreated() {
return this._dateCreated;
}
get lastUpdated() {
return this._lastUpdated;
}
get plainObject() {
return {
id: this._id,
name: this._name,
code: this._code,
imagePath: this._imagePath,
dateCreated: this._dateCreated && this._dateCreated,
lastUpdated: this._lastUpdated && this._lastUpdated,
};
}
}
exports.default = FinancialEntity;