scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
32 lines (31 loc) • 948 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaymentMethodEntity = void 0;
var __1 = require("..");
var PaymentMethodEntity = /** @class */ (function () {
// #endregion Properties (11)
// #region Constructors (1)
function PaymentMethodEntity(data) {
// #region Properties (11)
this.card = null;
this.cash = null;
this.code = '';
this.currency = 'BRL';
this.id = '';
this.method = __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 PaymentMethodEntity;
}());
exports.PaymentMethodEntity = PaymentMethodEntity;