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.

42 lines (41 loc) 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Bank { constructor({ bankId, name, imagePath, financialEntityId, isBankAggregation, hasActiveConsent }) { this._bankId = bankId; this._name = name; this._imagePath = imagePath; this._financialEntityId = financialEntityId; this._isBankAggregation = isBankAggregation; this._hasActiveConsent = hasActiveConsent; } get bankId() { return this._bankId; } get name() { return this._name; } get imagePath() { return this._imagePath; } get financialEntityId() { return this._financialEntityId; } get isBankAggregation() { return this._isBankAggregation; } get hasActiveConsent() { return this._hasActiveConsent; } toObject() { return { bankId: this._bankId, name: this._name, imagePath: this._imagePath, financialEntityId: this._financialEntityId, isBankAggregation: this._isBankAggregation, hasActiveConsent: this._hasActiveConsent }; } } exports.default = Bank;