Interface FindDiscountValuesStrategy
- All Superinterfaces:
ServiceLayerOnlyCalculationVerifier
- All Known Implementing Classes:
BundleCurrentFactoryFindPricingStrategy,DefaultSLFindDiscountValuesStrategy,DefaultSLFindOrderDiscountValuesStrategy,FindBundlePricingWithCurrentPriceFactoryStrategy,FindOrderDiscountValuesStrategy,FindPricingWithCurrentPriceFactoryStrategy,FindSubscriptionPricingWithCurrentPriceFactoryStrategy,TestPriceFactory
Strategy focuses on resolving
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.-
Method Summary
Modifier and TypeMethodDescriptionFind applicableDiscountValues for the target order entry.Find applicable globalDiscountValues for the target order.default List<DiscountInformation>getDiscountInformation(BaseCriteria baseCriteria) Get discountsDiscountInformations for given criteria.Methods inherited from interface de.hybris.platform.order.strategies.calculation.ServiceLayerOnlyCalculationVerifier
isSLOnly
-
Method Details
-
findDiscountValues
Find applicableDiscountValues for the target order entry.- Parameters:
entry-- Returns:
- List of
DiscountValues - Throws:
CalculationException
-
findDiscountValues
Find applicable globalDiscountValues for the target order. They may originate from the current session's price factory orDiscountModels directly attached to the target order.- Parameters:
order-- Returns:
- List of
DiscountValues - Throws:
CalculationException
-
getDiscountInformation
default List<DiscountInformation> getDiscountInformation(BaseCriteria baseCriteria) throws CalculationException Get discountsDiscountInformations for given criteria.- Parameters:
baseCriteria-BaseCriteria- Returns:
- the
Listof allDiscountInformations which matching baseCriteria. If no matching discounts were found, an empty collection is returned. - Throws:
CalculationException
-