Click or drag to resize

IEditSessionAddOrderCompoundItem Method (Guid, 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.V5.Editors
Assembly:  Resto.Front.Api.V5 (in Resto.Front.Api.V5.dll)
Syntax
C#
INewOrderCompoundItemStub AddOrderCompoundItem(
	Guid id,
	IProduct product,
	IOrderStub order,
	IOrderGuestItemStub guest,
	IProductSize size,
	OrderItemCourse course = OrderItemCourse.First
)

Parameters

id
Type: SystemGuid
Unique identifier of the new order item modifier. MUST be unique not only for the order item or order, but for the whole system. Therefore it must be taken from some synchronization operation or generated with Guid.NewGuid()
product
Type: Resto.Front.Api.V5.Data.AssortmentIProduct
Assortment position used to fix modifiers. Must exist in iikoFront assortment.
order
Type: Resto.Front.Api.V5.Editors.StubsIOrderStub
Order to which position will be added.
guest
Type: Resto.Front.Api.V5.Editors.StubsIOrderGuestItemStub
Guest to which position will be added.
size
Type: Resto.Front.Api.V5.Data.AssortmentIProductSize
Size of the order item if it's template has scale, otherwise null.
course (Optional)
Type: Resto.Front.Api.V5.Data.OrdersOrderItemCourse
Cooking and serving priority of the order item.

Return Value

Type: INewOrderCompoundItemStub
See Also