import { OrderComboCustomSelection, SellectionCustomizer, SubItemsCustomizers } from "lib/Orders/OrderContract"; import { Flavor } from "../Desktop/MenuVisor"; export interface QRAddItemToSessionOutputPayload { actionType: 'add-item' | 'remove-item'; itemId: String; itemType: 'item' | 'combo'; businessId: Number; flavor?: Flavor; price: Number; itenTitle: String; customizers?: SellectionCustomizer[]; } export interface QRAddFlavorToItemSessionOutputPayload { actionType: 'add-flavor-to-item' | 'remove-flavor-to-item'; itemId: String; flavorId: Number; itemType: 'item' | 'combo'; businessId: Number; flavor?: Flavor; price: Number; itenTitle: String; flavorTitle: String; } export interface QRAddComboToSessionOutputPayload { actionType: 'add-combo'; comboId: Number; businessId: Number; comboCustomSelections?: OrderComboCustomSelection; price: number; comboTitle: string; customizers?: SubItemsCustomizers[]; } export interface QRRemoveComboInSessionOutputPayload { actionType: 'remove-combo'; comboId: Number; itemIndex: number; }