IEditSessionAddOrderCombo Method |
Create order combo item. Order must contain new combo items.
Namespace: Resto.Front.Api.EditorsAssembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
SyntaxINewOrderComboStub AddOrderCombo(
Guid id,
string name,
int amount,
decimal price,
Guid sourceActionId,
Guid programId,
IReadOnlyDictionary<ComboGroupIdAndName, IOrderCookingItemStub> comboItems,
IOrderStub order,
IOrderGuestItemStub guest,
IProductSize size = null
)
Parameters
- id Guid
- Unique identifier of the new combo. MUST be unique not only for the order, but for the whole system. Therefore it must be taken from some synchronization operation or generated with Guid.NewGuid().
- name String
- Name of combo.
- amount Int32
- Amount of combo.
- price Decimal
- Price of combo.
- sourceActionId Guid
- Unique identifier of source combo (template identifier).
- programId Guid
- Identifier of the loyalty program.
- comboItems IReadOnlyDictionaryComboGroupIdAndName, IOrderCookingItemStub
- Combo items dictionary. Key - combo group identifier with its name, Value - item id (must be contained in order).
- order IOrderStub
- Order to which combo will be added.
- guest IOrderGuestItemStub
- Guest to which combo will be added.
- size IProductSize (Optional)
- Size of the combo if it's template has scale, otherwise null.
Return Value
INewOrderComboStub
See Also