An order management system for a restaurant is being developed, Implement the IOrder and IOrder System interface as described.
Implement an order abstraction and an order-system abstraction that can add or remove order items, list items with quantities, and calculate the total after applying discounts by price category: Cheap, Moderate, and Expensive.
Use process_orders(operations, discounts). Each item has id, name, price, and category. Operations are add, remove, list, or total. An add operation includes item and quantity; a remove operation includes id and quantity. Return one result per operation: null for mutations, a list for list, and the discounted numeric total for total.
def process_orders(operations, discounts):