UNPKG

finerio-pfm-unnax

Version:

This SDK lets you connect to [Finerio PFM API Unnax](http://ec2-3-16-174-50.us-east-2.compute.amazonaws.com:8082/swagger-ui/index.html#/) in an easier way.

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;