scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
32 lines (31 loc) • 1 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrderPaymentMethodEntity = void 0;
var general_1 = require("../../general");
var OrderPaymentMethodEntity = /** @class */ (function () {
// #endregion Properties (11)
// #region Constructors (1)
function OrderPaymentMethodEntity(data) {
// #region Properties (11)
this.card = null;
this.cash = null;
this.code = '';
this.currency = 'BRL';
this.id = '';
this.method = general_1.EPaymentType.CASH;
this.pix = null;
this.prepaid = false;
this.type = 'OFFLINE';
this.value = 0;
this.wallet = null;
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return OrderPaymentMethodEntity;
}());
exports.OrderPaymentMethodEntity = OrderPaymentMethodEntity;