Click or drag to resize

IEditSessionAddOrderServiceItem 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.V7 (in Resto.Front.Api.V7.dll)
Syntax
C#
INewOrderServiceItemStub AddOrderServiceItem(
	IProduct service,
	IOrderStub order,
	IOrderGuestItemStub guest,
	TimeSpan? timeLimit = null
)

Parameters

service
Type: Resto.Front.Api.Data.AssortmentIProduct
Assortment position. 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
timeLimit (Optional)
Type: SystemNullableTimeSpan
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