cecon-interfaces
Version:
Interfaces de Projetos Cecon
31 lines (30 loc) • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BillingEntity = void 0;
var enums_1 = require("../enums");
var billing_total_entity_1 = require("./billing-total.entity");
var BillingEntity = /** @class */ (function () {
// #endregion Properties (12)
// #region Constructors (1)
function BillingEntity(data) {
// #region Properties (12)
this.company = null;
this.createdAt = new Date();
this.dueDateAt = new Date();
this.id = '';
this.orders = [];
this.payments = [];
this.status = enums_1.EBillingStatus.PENDING;
this.total = new billing_total_entity_1.BillingTotalEntity();
this.updatedAt = new Date();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return BillingEntity;
}());
exports.BillingEntity = BillingEntity;