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.

48 lines (47 loc) 1.4 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const BankConsent_1 = __importDefault(require("./BankConsent")); class ConsentDetail { constructor({ consentId, originBankName, customerIdentification, cpf, bank, deadline, status, isSynchronized, purpose }) { this._consentId = consentId; this._originBankName = originBankName; this._customerIdentification = customerIdentification; this._cpf = cpf; this._bank = new BankConsent_1.default(bank); this._deadline = deadline; this._status = status; this._isSynchronized = isSynchronized; this._purpose = purpose; } get consentId() { return this._consentId; } get originBankName() { return this._originBankName; } get customerIdentification() { return this._customerIdentification; } get cpf() { return this._cpf; } get bank() { return this._bank; } get deadline() { return this._deadline; } get status() { return this._status; } get isSynchronized() { return this._isSynchronized; } get purpose() { return this._purpose; } } exports.default = ConsentDetail;