UNPKG

cecon-interfaces

Version:
43 lines (42 loc) 1.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PayioCatalogItemEntity = void 0; var schedules_1 = require("../../schedules"); var enums_1 = require("../enums"); var PayioCatalogItemEntity = /** @class */ (function () { function PayioCatalogItemEntity(data) { this.catalogId = ''; this.categoryId = ''; this.companyId = ''; this.containerId = null; this.createdAt = new Date(); this.description = ''; this.dietaryRestrictions = []; this.engine = enums_1.EPayioEngines.NONE; this.externalCode = ''; this.hasOptionGroups = false; this.id = ''; this.imageUrl = ''; this.index = 0; this.measure = enums_1.EPayioMeasure.UN; this.name = ''; this.optionGroupId = []; this.price = 0; this.productionPlaceId = ''; this.serving = ''; this.shifts = []; this.skill = schedules_1.EPayioScheduleSkill.NORMAL; 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;