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.
24 lines (23 loc) • 709 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const CategoryResume_1 = __importDefault(require("./CategoryResume"));
class IncomeExpense {
constructor({ date, categories, amount }) {
this._date = date;
this._categories = categories.map((cat) => new CategoryResume_1.default(cat));
this._amount = amount;
}
get date() {
return this._date;
}
get categories() {
return this._categories;
}
get amount() {
return this._amount;
}
}
exports.default = IncomeExpense;