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.

75 lines (74 loc) 1.83 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class AccountPayload { constructor({ userId, financialEntityId, nature, name, number, balance, chargeable, extra_data }) { this._userId = userId; this._financialEntityId = financialEntityId; this._nature = nature; this._name = name; this._number = number; this._balance = balance; this._chargeable = chargeable; this._extra_data = extra_data; } get userId() { return this._userId; } set userId(value) { this._userId = value; } get financialEntityId() { return this._financialEntityId; } set financialEntityId(value) { this._financialEntityId = value; } 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 extra_data() { return this._extra_data; } set extra_data(value) { this._extra_data = value; } toObject() { return { userId: this._userId, financialEntityId: this._financialEntityId, nature: this._nature, name: this._name, number: this._number, balance: this._balance, chargeable: this._chargeable }; } } exports.default = AccountPayload;