cecon-interfaces
Version:
Interfaces de Projetos Cecon
34 lines (33 loc) • 1.07 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PayioConsumerEntity = void 0;
var general_1 = require("../../../general");
var PayioConsumerEntity = /** @class */ (function () {
function PayioConsumerEntity(data) {
this.active = false;
this.address = null;
this.birthDate = null;
this.createdAt = new Date();
this.docNumber = '';
this.docType = general_1.EDocType.CPF;
this.email = '';
this.gender = general_1.EGender.NOT_INFORMED;
this.id = '';
this.imageUrl = null;
this.internationalCode = '';
this.name = '';
this.phoneNumber = '';
this.sandbox = false;
this.tags = [];
this.updatedAt = new Date();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return PayioConsumerEntity;
}());
exports.PayioConsumerEntity = PayioConsumerEntity;