Class SubscriptionFindDiscountValuesHook
- java.lang.Object
-
- de.hybris.platform.subscriptionservices.subscription.impl.SubscriptionFindDiscountValuesHook
-
- All Implemented Interfaces:
FindDiscountValuesHook
- Direct Known Subclasses:
SubscriptionBundleFindDiscountValuesHook
public class SubscriptionFindDiscountValuesHook extends java.lang.Object implements FindDiscountValuesHook
-
-
Constructor Summary
Constructors Constructor Description SubscriptionFindDiscountValuesHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DiscountValue>findDiscountValues(AbstractOrderEntryModel entry)Find applicableDiscountValues for the target order entry.SubscriptionCommercePriceServicegetCommercePriceService()protected java.util.List<DiscountValue>getDiscountValuesWhenBillingFrequency(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan)SubscriptionProductServicegetSubscriptionProductService()booleanisApplicable(AbstractOrderEntryModel entry)Indicates whether a custom base price can be found for the givenAbstractOrderEntryModel.voidsetCommercePriceService(SubscriptionCommercePriceService commercePriceService)voidsetSubscriptionProductService(SubscriptionProductService subscriptionProductService)
-
-
-
Method Detail
-
findDiscountValues
public java.util.List<DiscountValue> findDiscountValues(AbstractOrderEntryModel entry)
Description copied from interface:FindDiscountValuesHookFind applicableDiscountValues for the target order entry.- Specified by:
findDiscountValuesin interfaceFindDiscountValuesHook- Returns:
- List of
DiscountValues
-
isApplicable
public boolean isApplicable(AbstractOrderEntryModel entry)
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 java.util.List<DiscountValue> getDiscountValuesWhenBillingFrequency(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan)
-
getCommercePriceService
public SubscriptionCommercePriceService getCommercePriceService()
-
setCommercePriceService
public void setCommercePriceService(SubscriptionCommercePriceService commercePriceService)
-
getSubscriptionProductService
public SubscriptionProductService getSubscriptionProductService()
-
setSubscriptionProductService
public void setSubscriptionProductService(SubscriptionProductService subscriptionProductService)
-
-