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.
27 lines (26 loc) • 573 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class UserDetail {
constructor({ id, cpf, dateCreated }) {
this._id = id;
this._cpf = cpf;
this._dateCreated = dateCreated;
}
get id() {
return this._id;
}
get cpf() {
return this._cpf;
}
get dateCreated() {
return this._dateCreated;
}
toObject() {
return {
id: this._id,
cpf: this._cpf,
dateCreated: this._dateCreated
};
}
}
exports.default = UserDetail;