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.
28 lines (27 loc) • 798 B
JavaScript
;
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 Consent {
constructor({ consentId, expirationDate, bank, status }) {
this._consentId = consentId;
this._expirationDate = expirationDate;
this._bank = new BankConsent_1.default(bank);
this._status = status;
}
get consentId() {
return this._consentId;
}
get expirationDate() {
return this._expirationDate;
}
get bank() {
return this._bank;
}
get status() {
return this._status;
}
}
exports.default = Consent;