cecon-interfaces
Version:
Interfaces de Projetos Cecon
44 lines (43 loc) • 1.46 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NatipayOrderEntity = void 0;
var general_1 = require("../../../general");
var order_1 = require("../../../order");
var enums_1 = require("../enums");
var NatipayOrderEntity = /** @class */ (function () {
function NatipayOrderEntity(data) {
this.additionalFees = [];
this.benefits = [];
this.callbacks = [];
this.cancellation = null;
this.companyId = '';
this.companyName = '';
this.containerId = '';
this.createdAt = new Date();
this.customer = null;
this.displayId = '';
this.from = general_1.EFrom.NATIPAY;
this.id = '';
this.invoiceId = null;
this.items = [];
this.mercadoPago = null;
this.payments = null;
this.reference = '';
this.saleChannel = enums_1.ENatipaySaleChannel.NATI_PDV;
this.sandbox = false;
this.status = enums_1.ENatipayOrderStatus.PLACED;
this.total = new order_1.OrderTotalEntity();
this.transactionId = null;
this.updatedAt = new Date();
this.version = '';
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return NatipayOrderEntity;
}());
exports.NatipayOrderEntity = NatipayOrderEntity;