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