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) 826 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const SubcategoryAnalysis_1 = __importDefault(require("./SubcategoryAnalysis")); class CategoryAnalysis { constructor({ categoryId, amount, subcategories }) { this._categoryId = categoryId; this._amount = amount; this._subcategories = subcategories ? subcategories.map((subcat) => new SubcategoryAnalysis_1.default(subcat)) : []; } get categoryId() { return this._categoryId; } get amount() { return this._amount; } get subcategories() { return this._subcategories; } } exports.default = CategoryAnalysis;