Click or drag to resize

IEditSessionAddOrderItemProduct Method (Decimal, IProduct, IOrderStub, IOrderItemGuestStub)

Adds assortment position to the guest in existing order. User must have rights to edit orders.

Namespace:  Resto.Front.Api.V4.Editors
Assembly:  Resto.Front.Api.V4 (in Resto.Front.Api.V4.dll)
Syntax
C#
INewOrderItemProductStub AddOrderItemProduct(
	decimal amount,
	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
product
Type: Resto.Front.Api.V4.Data.AssortmentIProduct
Assortment position. Must exist in iikoFront assortment.
order
Type: Resto.Front.Api.V4.Editors.StubsIOrderStub
Order to which position will be added
guest
Type: Resto.Front.Api.V4.Editors.StubsIOrderItemGuestStub
Guest to which position will be added

Return Value

Type: INewOrderItemProductStub
See Also