scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
54 lines (53 loc) • 1.82 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvoiceEntity = void 0;
var general_1 = require("../../general");
var master_setting_1 = require("../../master-setting");
var enums_1 = require("../enums");
var InvoiceEntity = /** @class */ (function () {
function InvoiceEntity(data) {
// #region Properties (43)
this.addition = 0;
this.bankSlip = null;
this.bankSlipExtraDue = 1;
this.createdAt = new Date();
this.creditCard = null;
this.currency = 'BRL';
this.customerId = null;
this.discount = 0;
this.email = null;
this.externalInvoiceId = '';
this.externalInvoiceUrl = '';
this.id = '';
this.items = [];
this.logs = [];
this.notes = '';
this.paidAt = null;
this.expiresAt = new Date(this.createdAt.getFullYear(), this.createdAt.getMonth(), this.createdAt.getDate() + 1);
this.payer = new master_setting_1.CustomerInfoEntity();
this.paymentMethod = general_1.EPaymentType.NONE;
this.pix = null;
this.sandbox = false;
this.status = enums_1.EInvoiceStatus.PENDING;
this.subTotal = 0;
this.subscriptionId = '';
this.totalAmount = 0;
this.totalFee = 0;
this.totalOverPaid = 0;
this.totalPaid = 0;
this.totalRefunded = 0;
this.updatedAt = this.createdAt;
this.notificationUrl = '';
this.returnUrl = '';
this.checkout = null;
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return InvoiceEntity;
}());
exports.InvoiceEntity = InvoiceEntity;