UNPKG

open-banking-pfm-sdk

Version:

The Open Banking PFM SDK uses Client classes and with **Promises** to get responses from the Open Banking PFM API in an easier way and structured as data models.

24 lines (23 loc) 709 B
"use strict"; 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;