mobyo-interfaces
Version:
Interfaces de Projetos Mobyo
43 lines (42 loc) • 1.3 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NatiV1CartItemEntity = void 0;
var NatiV1CartItemEntity = /** @class */ (function () {
// #endregion Properties (23)
// #region Constructors (1)
function NatiV1CartItemEntity(data) {
// #region Properties (23)
this.addition = 0;
this.addsValue = false;
this.createdAt = new Date();
this.id = 0;
this.isAdditionalItem = false;
this.isDelivery = false;
this.isNew = false;
this.linkItemId = 0;
this.measure = '';
this.observations = '';
this.personId = 0;
this.picture = undefined;
this.productCode = '';
this.productId = 0;
this.productName = '';
this.quantity = 0;
this.tabId = 0;
this.terminalId = '';
this.total = 0;
this.unitPrice = 0;
this.updatedAt = new Date();
this.userName = '';
this.without = false;
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return NatiV1CartItemEntity;
}());
exports.NatiV1CartItemEntity = NatiV1CartItemEntity;