UNPKG

scheunemann-interfaces

Version:
41 lines (40 loc) 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OrderItemEntity = void 0; var scale_price_entity_1 = require("./scale-price.entity"); var OrderItemEntity = /** @class */ (function () { // #endregion Properties (20) // #region Constructors (1) function OrderItemEntity(data) { // #region Properties (20) this.composition = []; this.ean = ''; this.externalCode = ''; this.id = ''; this.index = 0; this.name = ''; this.observations = ''; this.options = []; this.optionsPrice = 0; this.picture = ''; this.preparationPlaceId = ''; this.price = 0; this.productId = 0; this.quantity = 0; this.scalePrices = new scale_price_entity_1.OrderScaleEntity(); this.skill = ''; this.totalPrice = 0; this.unit = ''; this.unitPrice = 0; this.weight = 0; if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return OrderItemEntity; }()); exports.OrderItemEntity = OrderItemEntity;