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.Editors
Assembly:  Resto.Front.Api.V6 (in Resto.Front.Api.V6.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.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