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.

87 lines (86 loc) 2.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Account { constructor({ userId, id, financialEntityId, name, nature, number, balance, chargeable, dateCreated, lastUpdated, providerId, extra_data, }) { this._userId = userId; this._id = id; this._financialEntityId = financialEntityId; this._name = name; this._nature = nature; this._number = number; this._balance = balance; this._chargeable = chargeable; this._dateCreated = dateCreated || null; this._lastUpdated = lastUpdated || null; this._providerId = providerId || null; this._extra_data = extra_data || null; } get id() { return this._id; } get nature() { return this._nature; } set nature(value) { this._nature = value; } get name() { return this._name; } set name(value) { this._name = value; } get number() { return this._number; } set number(value) { this._number = value; } get balance() { return this._balance; } set balance(value) { this._balance = value; } get chargeable() { return this._chargeable; } set chargeable(value) { this._chargeable = value; } get dateCreated() { return this._dateCreated; } get lastUpdated() { return this._lastUpdated; } get userId() { return this._userId; } get financialEntityId() { return this._financialEntityId; } get providerId() { return this._providerId; } get extra_data() { return this._extra_data; } get plainObject() { return { id: this._id, userId: this._userId, financialEntityId: this._financialEntityId, name: this._name, nature: this._nature, number: this._number, balance: this._balance, chargeable: this._chargeable, providerId: this._providerId, dateCreated: this._dateCreated && this._dateCreated, lastUpdated: this._lastUpdated && this._lastUpdated, extraData: this._extra_data, }; } } exports.default = Account;