Click or drag to resize

IEditSessionAddOrderCompoundItem Method (IProduct, IOrderStub, IOrderGuestItemStub, IProductSize, OrderItemCourse)

Adds compound item to the guest in existing order. User must have permission to edit orders.

Namespace:  Resto.Front.Api.Editors
Assembly:  Resto.Front.Api.V7 (in Resto.Front.Api.V7.dll)
Syntax
C#
INewOrderCompoundItemStub AddOrderCompoundItem(
	IProduct product,
	IOrderStub order,
	IOrderGuestItemStub guest,
	IProductSize size,
	OrderItemCourse course = OrderItemCourse.Default
)

Parameters

product
Type: Resto.Front.Api.Data.AssortmentIProduct
Assortment position used to fix modifiers. Must exist in iikoFront assortment.
order
Type: Resto.Front.Api.Editors.StubsIOrderStub
Order to which position will be added.
guest
Type: Resto.Front.Api.Editors.StubsIOrderGuestItemStub
Guest to which position will be added.
size
Type: Resto.Front.Api.Data.AssortmentIProductSize
Size of the order item if it's template has scale, otherwise null.
course (Optional)
Type: Resto.Front.Api.Data.OrdersOrderItemCourse
Cooking and serving priority of the order item.

Return Value

Type: INewOrderCompoundItemStub
Remarks
See Also