Interface FindDiscountValuesHook
-
- All Known Implementing Classes:
BundleFindDiscountValuesHook,SubscriptionBundleFindDiscountValuesHook,SubscriptionFindDiscountValuesHook
public interface FindDiscountValuesHookHook that focuses on resolvingDiscountValuefor the givenAbstractOrderEntryModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<DiscountValue>findDiscountValues(AbstractOrderEntryModel entry)Find applicableDiscountValues for the target order entry.booleanisApplicable(AbstractOrderEntryModel entry)Indicates whether a custom base price can be found for the givenAbstractOrderEntryModel.
-
-
-
Method Detail
-
findDiscountValues
java.util.List<DiscountValue> findDiscountValues(AbstractOrderEntryModel entry)
Find applicableDiscountValues for the target order entry.- Parameters:
entry-- Returns:
- List of
DiscountValues
-
isApplicable
boolean isApplicable(AbstractOrderEntryModel entry)
Indicates whether a custom base price can be found for the givenAbstractOrderEntryModel.- Parameters:
entry-AbstractOrderEntryModel- Returns:
- whether hook is applicable
-
-