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.

34 lines (33 loc) 1.04 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const TransactionAnalysis_1 = __importDefault(require("./TransactionAnalysis")); class SubcategoryAnalysis { constructor({ categoryId, average, quantity, amount, transactions }) { this._categoryId = categoryId; this._average = average; this._quantity = quantity; this._amount = amount; this._transactions = transactions ? transactions.map((transaction) => new TransactionAnalysis_1.default(transaction)) : []; } get categoryId() { return this._categoryId; } get amount() { return this._amount; } get average() { return this._average; } get quantity() { return this._quantity; } get transactions() { return this._transactions; } } exports.default = SubcategoryAnalysis;