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.

26 lines (25 loc) 869 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const TransactionsByDate_1 = __importDefault(require("./TransactionsByDate")); class SubcategoryInsights { constructor({ categoryId, amount, transactionsByDate }) { this._categoryId = categoryId; this._amount = amount; this._transactionsByDate = transactionsByDate ? transactionsByDate.map((transaction) => new TransactionsByDate_1.default(transaction)) : []; } get categoryId() { return this._categoryId; } get amount() { return this._amount; } get transactionsByDate() { return this._transactionsByDate; } } exports.default = SubcategoryInsights;