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.
44 lines (43 loc) • 1.12 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class BudgetPayload {
constructor(_name, _amount, _warningPercentage, _categoryId) {
this._name = _name;
this._amount = _amount;
this._warningPercentage = _warningPercentage;
this._categoryId = _categoryId;
}
get categoryId() {
return this._categoryId;
}
set categoryId(categoryId) {
this._categoryId = categoryId;
}
get name() {
return this._name;
}
set name(name) {
this._name = name;
}
get amount() {
return this._amount;
}
set amount(amount) {
this._amount = amount;
}
get warningPercentage() {
return this._warningPercentage;
}
set warningPercentage(warningPercentage) {
this._warningPercentage = warningPercentage;
}
get plainObject() {
return {
categoryId: this._categoryId,
name: this._name,
amount: this._amount,
warningPercentage: this.warningPercentage,
};
}
}
exports.default = BudgetPayload;