UNPKG

cecon-interfaces

Version:
45 lines (44 loc) 1.51 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PayioCatalogItemEntity = void 0; var enums_1 = require("../enums"); var PayioCatalogItemEntity = /** @class */ (function () { function PayioCatalogItemEntity(data) { this.autoImportStatus = enums_1.EPayioImportStatus.DISABLED; this.catalogId = ''; this.categoryId = ''; this.companyId = ''; this.containerId = null; this.contextModifiers = []; this.createdAt = new Date(); this.customizationModifiers = []; this.description = ''; this.dietaryRestrictions = []; this.engine = enums_1.EPayioEngines.NONE; this.externalCode = ''; this.externalReference = null; this.hasOptionGroups = false; this.id = ''; this.imagePath = ''; this.index = 0; this.name = ''; this.optionGroups = []; this.price = { value: 0, originalValue: 0 }; this.productId = ''; this.sequence = 0; this.serving = ''; this.shifts = []; this.status = enums_1.EPayioCatalogStatus.AVAILABLE; this.tags = []; this.updatedAt = new Date(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return PayioCatalogItemEntity; }()); exports.PayioCatalogItemEntity = PayioCatalogItemEntity;