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.
32 lines (31 loc) • 898 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class TransactionList {
constructor({ transactions, currentPage, totalPages, totalItems, }) {
this._transactions = transactions;
this._currentPage = currentPage;
this._totalPages = totalPages;
this._totalItems = totalItems;
}
get transactions() {
return this._transactions;
}
get currentPage() {
return this._currentPage;
}
get totalPages() {
return this._totalPages;
}
get totalItems() {
return this._totalItems;
}
get plainObject() {
return {
transactions: this._transactions.map((item) => item.plainObject),
currentPage: this._currentPage,
totalPages: this._totalPages,
totalItems: this._totalItems,
};
}
}
exports.default = TransactionList;