namespace Inspectron.Epson.PrintServer.Printers.Utils.BarReceipt { public class BarReceipt { /// /// Restaurant name /// public string Title { get; set; } /// /// Date and time of the transaction /// public DateTime TransactionDateTime { get; set; } /// /// Receipt number /// public string ReceiptNumber { get; set; } /// /// Server/Waiter name /// public string WaiterName { get; set; } /// /// Server/Waiter ID /// public string WaiterId { get; set; } /// /// Table number /// public string TableNumber { get; set; } public string SpecialInstruction { get; set; } public List Gangs { get; set; } = new List(); public List Dishes { get; set; } = new List(); public BarReceipt() { Gangs = new List(); } } public class Gang { public Gang(int id, string name) { Id = id; Name = name; } public int Id { get; set; } public string Name { get; set; } public List Dishes { get; set; } = new List(); } /// /// Represents a dish item on the receipt /// public class Dish { /// /// Number ordered /// public int Number { get; set; } /// /// Name of the dish /// public string Name { get; set; } public int? GuestId { get; set; } public Dish() { } public Dish(int number, string name) { Number = number; Name = name; } public DishModifications Modifications { get; set; } = new DishModifications(); public string? Comment { get; set; } } public class DishModifications { public List Removed { get; set; } = new List(); public List Added { get; set; } = new List(); } }