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.

52 lines (51 loc) 1.57 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class BankAggregated { constructor({ originBankName, customerIdentification, cpf, targetInstitution, deadline, expirationDay, status, isSynchronized }) { this._originBankName = originBankName; this._customerIdentification = customerIdentification; this._cpf = cpf; this._targetInstitution = targetInstitution; this._deadline = deadline; this._expirationDay = expirationDay; this._status = status; this._isSynchronized = isSynchronized; } get originBankName() { return this._originBankName; } get customerIdentification() { return this._customerIdentification; } get cpf() { return this._cpf; } get targetInstitution() { return this._targetInstitution; } get deadline() { return this._deadline; } get expirationDay() { return this._expirationDay; } get status() { return this._status; } get isSynchronized() { return this._isSynchronized; } toObject() { return { originBankName: this._originBankName, customerIdentification: this._customerIdentification, cpf: this._cpf, targetInstitution: this._targetInstitution, deadline: this._deadline, expirationDay: this._expirationDay, status: this._status, isSynchronized: this._isSynchronized }; } } exports.default = BankAggregated;