Click or drag to resize

IEditSession.AddOrderServiceItem Method

Adds time pay service item to the guest in existing order. User must have permission to edit orders.

Namespace:  Resto.Front.Api.Editors
Assembly:  Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntax
C#
INewOrderServiceItemStub AddOrderServiceItem(
	IProduct service,
	IOrderStub order,
	IOrderGuestItemStub guest,
	TimeSpan? timeLimit = null
)

Parameters

service
Type: Resto.Front.Api.Data.Assortment.IProduct
Assortment position. Must exist in iikoFront assortment.
order
Type: Resto.Front.Api.Editors.Stubs.IOrderStub
Order to which position will be added
guest
Type: Resto.Front.Api.Editors.Stubs.IOrderGuestItemStub
Guest to which position will be added
timeLimit (Optional)
Type: System.Nullable<TimeSpan>
Total amount of time after which the service will be stopped or null for default limit (12 hours). Includes all periods.

Return Value

Type: INewOrderServiceItemStub
See Also