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.
22 lines (21 loc) • 427 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class User {
constructor({ userId, cpf }) {
this._userId = userId;
this._cpf = cpf;
}
get userId() {
return this._userId;
}
get cpf() {
return this._cpf;
}
toObject() {
return {
userId: this._userId,
cpf: this._cpf
};
}
}
exports.default = User;