IEditSessionAddOrderItemProduct Method (Decimal, OrderItemCourse, IProduct, IOrderStub, IOrderItemGuestStub)iikoFront Api V3 Documentation
Adds assortment position with specific OrderItemCourse 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(
	decimal amount,
	OrderItemCourse course,
	IProduct product,
	IOrderStub order,
	IOrderItemGuestStub guest
)

Parameters

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