Class SubscriptionPriceFindPriceHook
java.lang.Object
de.hybris.platform.subscriptionservices.subscription.impl.SubscriptionPriceFindPriceHook
- All Implemented Interfaces:
FindPriceHook,ServiceLayerOnlyCalculationVerifier
This hook should implement the price finding strategy for
ProductModels.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PriceValuecreatePriceValueForLastRecurringPrice(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan) findCustomBasePrice(AbstractOrderEntryModel entry, PriceValue defaultPrice) Resolves the subscription price value for the given AbstractOrderEntryModel by searching aProductModelthat is applicable for the entry's subscription product.booleanIndicates whether a custom base price can be found for the givenAbstractOrderEntryModel.voidsetCommercePriceService(SubscriptionCommercePriceService commercePriceService) voidsetSubscriptionProductService(SubscriptionProductService subscriptionProductService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.order.strategies.calculation.ServiceLayerOnlyCalculationVerifier
isSLOnly
-
Constructor Details
-
SubscriptionPriceFindPriceHook
public SubscriptionPriceFindPriceHook()
-
-
Method Details
-
findCustomBasePrice
Resolves the subscription price value for the given AbstractOrderEntryModel by searching aProductModelthat is applicable for the entry's subscription product. In case the entry's product is not aProductModelor there is noProductModelfor it, the method is not applied- Specified by:
findCustomBasePricein interfaceFindPriceHook- Parameters:
entry-AbstractOrderEntryModel- Returns:
PriceValue
-
isApplicable
Description copied from interface:FindPriceHookIndicates whether a custom base price can be found for the givenAbstractOrderEntryModel.- Specified by:
isApplicablein interfaceFindPriceHook- Parameters:
entry-AbstractOrderEntryModel- Returns:
- whether hook is applicable
-
createPriceValueForLastRecurringPrice
protected PriceValue createPriceValueForLastRecurringPrice(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan) -
getCommercePriceService
-
setCommercePriceService
-
getSubscriptionProductService
-
setSubscriptionProductService
-