public interface FindDiscountValuesStrategy
DiscountValues for the order (global discounts), or for the order entry.
Implement the interface and inject a list of such strategies into the DefaultCalculationService if you want
the order calculation process to take into account all the returned discounts.| Modifier and Type | Method and Description |
|---|---|
java.util.List<DiscountValue> |
findDiscountValues(AbstractOrderEntryModel entry)
Find applicable
DiscountValues for the target order entry. |
java.util.List<DiscountValue> |
findDiscountValues(AbstractOrderModel order)
Find applicable global
DiscountValues for the target order. |
java.util.List<DiscountValue> findDiscountValues(AbstractOrderEntryModel entry) throws CalculationException
DiscountValues for the target order entry.entry - DiscountValuesCalculationExceptionjava.util.List<DiscountValue> findDiscountValues(AbstractOrderModel order) throws CalculationException
DiscountValues for the target order. They may originate from the current session's
price factory or DiscountModels directly attached to the target order.order - DiscountValuesCalculationExceptionCopyright © 2018 SAP SE. All Rights Reserved.