cecon-interfaces
Version:
Interfaces de Projetos Cecon
35 lines (34 loc) • 1.04 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PayioGlobalProductEntity = void 0;
var PayioGlobalProductEntity = /** @class */ (function () {
function PayioGlobalProductEntity(data) {
this.active = true;
this.avgPrice = 0;
this.brand = '';
this.cest = null;
this.code = '';
this.createdAt = new Date();
this.id = '';
this.lastPrices = [];
this.maxPrice = 0;
this.minPrice = 0;
this.name = '';
this.ncm = null;
this.quantityPackaging = 0;
this.tags = [];
this.thumbnail = null;
this.unit = '';
this.updatedAt = new Date();
this.weight = 0;
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return PayioGlobalProductEntity;
}());
exports.PayioGlobalProductEntity = PayioGlobalProductEntity;