Click or drag to resize

IEditSession.AddOrderCombo Method

Create order combo item. Order must contain new combo items.

Namespace:  Resto.Front.Api.Editors
Assembly:  Resto.Front.Api.V7Preview7 (in Resto.Front.Api.V7Preview7.dll)
Syntax
C#
INewOrderComboStub AddOrderCombo(
	Guid id,
	string name,
	int amount,
	decimal price,
	Guid sourceActionId,
	Guid programId,
	IReadOnlyDictionary<Guid, IOrderCookingItemStub> comboItems,
	IOrderStub order,
	IOrderGuestItemStub guest
)

Parameters

id
Type: System.Guid
Unique identifier of the new combo.
name
Type: System.String
Name of combo.
amount
Type: System.Int32
Amount of combo.
price
Type: System.Decimal
Price of combo.
sourceActionId
Type: System.Guid
Unique identifier of source combo (template identifier).
programId
Type: System.Guid
Identifier of the loyalty program.
comboItems
Type: System.Collections.Generic.IReadOnlyDictionary<Guid, IOrderCookingItemStub>
Combo items dictionary. Key - combo group identifier, Value - item id (must be contained in order).
order
Type: Resto.Front.Api.Editors.Stubs.IOrderStub
Order to which combo will be added.
guest
Type: Resto.Front.Api.Editors.Stubs.IOrderGuestItemStub
Guest to which combo will be added.

Return Value

Type: INewOrderComboStub
See Also