Click or drag to resize

IEditSessionChangeSelectiveDiscount(IOrderStub, IDiscountType, IReadOnlyListIOrderProductItemStub, IReadOnlyListIOrderModifierItemStub, IReadOnlyListIOrderCompoundItemComponentStub) 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.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  IOrderStub
Order containing the discount item.
discountType  IDiscountType
Type of discount item to change.
products  IReadOnlyListIOrderProductItemStub
Order item products to which the discount item can be applied to.
modifiers  IReadOnlyListIOrderModifierItemStub
Order item modifiers to which the discount item can be applied to.
components  IReadOnlyListIOrderCompoundItemComponentStub
Compound item components to which the discount item can be applied to.
See Also