cecon-interfaces
Version:
Interfaces de Projetos Cecon
26 lines (25 loc) • 755 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PixKeyEntity = void 0;
// src/models/base.entity.ts
var enums_1 = require("../enums");
var PixKeyEntity = /** @class */ (function () {
function PixKeyEntity(data) {
this.description = '';
this.doc = '';
this.docType = enums_1.EDocType.CPF;
this.isDefault = false;
this.key = '';
this.name = '';
this.type = enums_1.EPixKeyType.CPF;
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return PixKeyEntity;
}());
exports.PixKeyEntity = PixKeyEntity;