New Methods MoveOrderItemsToAnotherGuest and MoveOrderItemsToAnotherOrder in API V10 Preview 2
Starting from API V10Preview2, new methods have been added to IEditSession and IOperationService for transferring combos between guests and orders:
MoveOrderItemsToAnotherGuest(IReadOnlyList<IOrderRootItem> products, IOrderGuestItem destinationGuest, IOrder order, ...)MoveOrderItemsToAnotherOrder(IReadOnlyList<IOrderRootItem> orderItems, IOrder sourceOrder, IOrderGuestItem destinationGuest, IOrder destinationOrder, ...)
The existing methods MoveOrderItemToAnotherGuest and MoveOrderItemToAnotherOrder (details) transfer dishes one by one and do not support transferring combos — attempting to transfer a dish that is part of a combo will throw an exception.
The new methods accept a list of dishes, allowing you to pass all dishes of a combo in a single call and correctly transfer the entire combo. Individual dishes (not part of a combo) can also be transferred using the new methods.