cannoli-interfaces
Version:
Interfaces de Projetos Cannoli
26 lines (25 loc) • 754 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PixKeyEntity = void 0;
var enums_1 = require("../enums");
var PixKeyEntity = /** @class */ (function () {
function PixKeyEntity(data) {
this.active = true;
this.createdAt = new Date();
this.description = '';
this.id = '';
this.isDefault = false;
this.key = '';
this.type = enums_1.EPixKey.CPF;
this.updatedAt = new Date();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return PixKeyEntity;
}());
exports.PixKeyEntity = PixKeyEntity;