scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
40 lines (39 loc) • 1.26 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InviteEntity = void 0;
var general_1 = require("../../general");
var enums_1 = require("../enums");
var InviteEntity = /** @class */ (function () {
// #endregion Properties (18)
// #region Constructors (1)
function InviteEntity(data) {
// #region Properties (18)
this.companyId = '';
this.companyName = '';
this.containerId = '';
this.createdAt = new Date();
this.customerId = '';
this.doc = '';
this.docType = general_1.EDocType.CNPJ;
this.email = '';
this.expireAt = new Date(new Date().getTime() + 86400000);
this.expired = false;
this.id = '';
this.internationalCode = '55';
this.name = '';
this.phoneNumber = '';
this.photoUrl = '';
this.status = enums_1.InviteStatusEnum.PENDING;
this.uid = '';
this.updatedAt = new Date();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return InviteEntity;
}());
exports.InviteEntity = InviteEntity;