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.

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, amount, average, quantity, transactions, }) { this._categoryId = categoryId; this._amount = amount; this._average = average; this._quantity = quantity; 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;