UNPKG

scheunemann-interfaces

Version:
49 lines (48 loc) 1.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProductGlobalEntity = void 0; var enums_1 = require("../enums"); var product_brand_entity_1 = require("./product-brand.entity"); var product_ncm_entity_1 = require("./product-ncm.entity"); var ProductGlobalEntity = /** @class */ (function () { // #endregion Properties (26) // #region Constructors (1) function ProductGlobalEntity(data) { // #region Properties (26) this.active = true; this.avgPrice = 0; this.barcodeImage = null; this.brand = new product_brand_entity_1.ProductBrandEntity(); this.cest = null; this.createdAt = new Date(); this.description = ''; this.grossWeight = 0; this.gtin = null; this.gtinType = enums_1.GTINTypeEnum.THIRTEEN; this.height = 0; this.id = ''; this.length = 0; this.maxPrice = 0; this.measureQuantity = 1; this.measureUnit = 'UN'; this.minPrice = 0; this.name = ''; this.ncm = new product_ncm_entity_1.ProductNcmEntity(); this.netWeight = 0; this.createdBy = ''; this.price = 0; this.tags = []; this.thumbnail = null; this.updatedAt = new Date(); this.width = 0; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return ProductGlobalEntity; }()); exports.ProductGlobalEntity = ProductGlobalEntity;