Class SubscriptionFindDiscountValuesHook
java.lang.Object
de.hybris.platform.subscriptionservices.subscription.impl.SubscriptionFindDiscountValuesHook
- All Implemented Interfaces:
FindDiscountValuesHook
- Direct Known Subclasses:
SubscriptionBundleFindDiscountValuesHook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind applicableDiscountValues for the target order entry.protected List<DiscountValue>getDiscountValuesWhenBillingFrequency(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan) booleanIndicates whether a custom base price can be found for the givenAbstractOrderEntryModel.voidsetCommercePriceService(SubscriptionCommercePriceService commercePriceService) voidsetSubscriptionProductService(SubscriptionProductService subscriptionProductService)
-
Constructor Details
-
SubscriptionFindDiscountValuesHook
public SubscriptionFindDiscountValuesHook()
-
-
Method Details
-
findDiscountValues
Description copied from interface:FindDiscountValuesHookFind applicableDiscountValues for the target order entry.- Specified by:
findDiscountValuesin interfaceFindDiscountValuesHook- Returns:
- List of
DiscountValues
-
isApplicable
Description copied from interface:FindDiscountValuesHookIndicates whether a custom base price can be found for the givenAbstractOrderEntryModel.- Specified by:
isApplicablein interfaceFindDiscountValuesHook- Parameters:
entry-AbstractOrderEntryModel- Returns:
- whether hook is applicable
-
getDiscountValuesWhenBillingFrequency
protected List<DiscountValue> getDiscountValuesWhenBillingFrequency(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan) -
getCommercePriceService
-
setCommercePriceService
-
getSubscriptionProductService
-
setSubscriptionProductService
-