Interface FindDiscountValuesStrategy
-
- All Superinterfaces:
ServiceLayerOnlyCalculationVerifier
- All Known Implementing Classes:
BundleCurrentFactoryFindPricingStrategy,DefaultSLFindDiscountValuesStrategy,DefaultSLFindOrderDiscountValuesStrategy,FindBundlePricingWithCurrentPriceFactoryStrategy,FindOrderDiscountValuesStrategy,FindPricingForConfigurableProductsStrategy,FindPricingWithCurrentPriceFactoryStrategy,FindSubscriptionPricingWithCurrentPriceFactoryStrategy,TestPriceFactory
public interface FindDiscountValuesStrategy extends ServiceLayerOnlyCalculationVerifier
Strategy focuses on resolvingDiscountValues for the order (global discounts), or for the order entry. Implement the interface and inject a list of such strategies into theDefaultCalculationServiceif you want the order calculation process to take into account all the returned discounts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<DiscountValue>findDiscountValues(AbstractOrderEntryModel entry)Find applicableDiscountValues for the target order entry.java.util.List<DiscountValue>findDiscountValues(AbstractOrderModel order)Find applicable globalDiscountValues for the target order.default java.util.List<DiscountInformation>getDiscountInformation(BaseCriteria baseCriteria)Get discountsDiscountInformations for given criteria.-
Methods inherited from interface de.hybris.platform.order.strategies.calculation.ServiceLayerOnlyCalculationVerifier
isSLOnly
-
-
-
-
Method Detail
-
findDiscountValues
java.util.List<DiscountValue> findDiscountValues(AbstractOrderEntryModel entry) throws CalculationException
Find applicableDiscountValues for the target order entry.- Parameters:
entry-- Returns:
- List of
DiscountValues - Throws:
CalculationException
-
findDiscountValues
java.util.List<DiscountValue> findDiscountValues(AbstractOrderModel order) throws CalculationException
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 java.util.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
-
-