public interface FindDiscountValuesStrategy extends ServiceLayerOnlyCalculationVerifier
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. |
default java.util.List<DiscountInformation> |
getDiscountInformation(BaseCriteria baseCriteria)
Get discounts
DiscountInformations for given criteria. |
isSLOnlyjava.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 - DiscountValuesCalculationExceptiondefault java.util.List<DiscountInformation> getDiscountInformation(BaseCriteria baseCriteria) throws CalculationException
DiscountInformations for given criteria.baseCriteria - BaseCriteriaList of all DiscountInformations which matching baseCriteria. If no matching
discounts were found, an empty collection is returned.CalculationExceptionCopyright © 2018 SAP SE. All Rights Reserved.