IEditSessionAddOrderItemProduct Method (Guid, Decimal, OrderItemCourse, IProduct, IOrderStub, IOrderItemGuestStub)iikoFront Api V3 Documentation
Adds assortment position to the guest in existing order. User must have rights to edit orders.

Namespace: Resto.Front.Api.V3.Editors
Assembly: Resto.Front.Api.V3 (in Resto.Front.Api.V3.dll) Version: 4.1.1236.1 (4.1.1236.1)
Syntax

C#
INewOrderItemProductStub AddOrderItemProduct(
	Guid id,
	decimal amount,
	OrderItemCourse course,
	IProduct product,
	IOrderStub order,
	IOrderItemGuestStub guest
)

Parameters

id
Type: SystemGuid
Unique identifier of the new item in the order. MUST be unique not only for the order, but for the whole system. Therefore it must be taken from some synchronization operation or generated with Guid.NewGuid()
amount
Type: SystemDecimal
For positions with weight: weight in defined measure unit. For positions without weight: amount of the position. Can be from 0.001 to 999.999
course
Type: Resto.Front.Api.V3.Data.OrdersOrderItemCourse
Cooking and serving priority of an order item.
product
Type: Resto.Front.Api.V3.Data.AssortmentIProduct
Assortment position. Must exist in iikoFront assortment.
order
Type: Resto.Front.Api.V3.EditorsIOrderStub
Order to which position will be added
guest
Type: Resto.Front.Api.V3.EditorsIOrderItemGuestStub
Guest to which position will be added

Return Value

Type: INewOrderItemProductStub
See Also

Reference