cecon-interfaces
Version:
Interfaces de Projetos Cecon
34 lines (33 loc) • 1.09 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BillingPaymentEntity = void 0;
var general_1 = require("../../general");
var BillingPaymentEntity = /** @class */ (function () {
// #endregion Properties (13)
// #region Constructors (1)
function BillingPaymentEntity(data) {
// #region Properties (13)
this.addition = 0;
this.cancelled = 0;
this.company = {};
this.discount = 0;
this.id = '';
this.paymentReceiptUrl = '';
this.paymentType = general_1.EPaymentType.NONE;
this.status = general_1.EPaymentStatus.PENDING;
this.subtotal = 0;
this.tax = 0;
this.totalAmount = 0;
this.transactionDate = new Date();
this.transactionId = '';
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return BillingPaymentEntity;
}());
exports.BillingPaymentEntity = BillingPaymentEntity;