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.

72 lines (71 loc) 2.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Account { constructor({ id, providerId, nature, name, number, balance, chargeable, dateCreated, lastUpdated, isBankAggregation, financialEntityId, extra_data }) { this._id = id; this._providerId = providerId || null; this._nature = nature; this._name = name; this._number = number; this._balance = balance; this._chargeable = chargeable; this._dateCreated = dateCreated; this._lastUpdated = lastUpdated; this._isBankAggregation = isBankAggregation; this._financialEntityId = financialEntityId; this._extra_data = extra_data || null; } get id() { return this._id; } get providerId() { return this._providerId; } get nature() { return this._nature; } get name() { return this._name; } get number() { return this._number; } get balance() { return this._balance; } get chargeable() { return this._chargeable; } get dateCreated() { return this._dateCreated; } get lastUpdated() { return this._lastUpdated; } get isBankAggregation() { return this._isBankAggregation; } get financialEntityId() { return this._financialEntityId; } get extra_data() { return this._extra_data; } toObject() { return { id: this._id, providerId: this._providerId, nature: this._nature, name: this._name, number: this._number, balance: this._balance, chargeable: this._chargeable, dateCreated: this._dateCreated, lastUpdated: this._lastUpdated, isBankAggregation: this._isBankAggregation, financialEntityId: this._financialEntityId, extraData: this._extra_data }; } } exports.default = Account;