Click or drag to resize

IEditSessionChangeSelectiveDiscount Method (IOrderStub, IDiscountType, IReadOnlyListIOrderProductItemStub, IReadOnlyListIOrderModifierItemStub, IReadOnlyListIOrderCompoundItemComponentStub)

Change discount item selective application settings. Set both products and modifiers to null if you want the discount item to be applied to the whole order (including future order items), otherwise provide order item products and modifiers for selective discount item application.

Namespace:  Resto.Front.Api.Editors
Assembly:  Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
void ChangeSelectiveDiscount(
	IOrderStub order,
	IDiscountType discountType,
	IReadOnlyList<IOrderProductItemStub> products,
	IReadOnlyList<IOrderModifierItemStub> modifiers,
	IReadOnlyList<IOrderCompoundItemComponentStub> components
)

Parameters

order
Type: Resto.Front.Api.Editors.StubsIOrderStub
Order containing the discount item.
discountType
Type: Resto.Front.Api.Data.OrdersIDiscountType
Type of discount item to change.
products
Type: System.Collections.GenericIReadOnlyListIOrderProductItemStub
Order item products to which the discount item can be applied to.
modifiers
Type: System.Collections.GenericIReadOnlyListIOrderModifierItemStub
Order item modifiers to which the discount item can be applied to.
components
Type: System.Collections.GenericIReadOnlyListIOrderCompoundItemComponentStub
Compound item components to which the discount item can be applied to.
See Also