Click or drag to resize

IEditSessionChangeSelectiveDiscount Method

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.V5.Editors
Assembly:  Resto.Front.Api.V5 (in Resto.Front.Api.V5.dll)
Syntax
C#
void ChangeSelectiveDiscount(
	IOrderStub order,
	IDiscountType discountType,
	IReadOnlyList<IOrderProductItemStub> products,
	IReadOnlyList<IOrderModifierItemStub> modifiers
)

Parameters

order
Type: Resto.Front.Api.V5.Editors.StubsIOrderStub
Order containing the discount item.
discountType
Type: Resto.Front.Api.V5.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.
See Also