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.

67 lines (66 loc) 1.81 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Budget { constructor({ id, categoryId, name, amount, warningPercentage, spent, leftToSpend, status, dateCreated, lastUpdated, dateDeleted = null, }) { this._id = id; this._categoryId = categoryId; this._name = name; this._amount = amount; this._warningPercentage = warningPercentage; this._spent = spent; this._leftToSpend = leftToSpend; this._status = status; this._dateCreated = dateCreated; this._lastUpdated = lastUpdated; this._dateDeleted = dateDeleted; } get id() { return this._id; } get categoryId() { return this._categoryId; } get name() { return this._name; } get amount() { return this._amount; } get warningPercentage() { return this._warningPercentage; } get spent() { return this._spent; } get leftToSpend() { return this._leftToSpend; } get status() { return this._status; } get dateCreated() { return this._dateCreated; } get lastUpdated() { return this._lastUpdated; } get dateDeleted() { return this._dateDeleted; } get plainObject() { return { id: this._id, categoryId: this._categoryId, name: this._name, amount: this._amount, warningPercentage: this._warningPercentage, spent: this._spent, leftToSpend: this._leftToSpend, status: this._status, dateCreated: this._dateCreated, lastUpdated: this._lastUpdated, dateDeleted: this._dateDeleted, }; } } exports.default = Budget;