Class FindSubscriptionPricingWithCurrentPriceFactoryStrategy
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.order.strategies.calculation.impl.FindPricingWithCurrentPriceFactoryStrategy
-
- de.hybris.platform.subscriptionservices.subscription.impl.FindSubscriptionPricingWithCurrentPriceFactoryStrategy
-
- All Implemented Interfaces:
FindDiscountValuesStrategy,FindPriceStrategy,FindTaxValuesStrategy,ServiceLayerOnlyCalculationVerifier,UserNetCheckingStrategy,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
FindBundlePricingWithCurrentPriceFactoryStrategy
@Deprecated(since="2105", forRemoval=true) public class FindSubscriptionPricingWithCurrentPriceFactoryStrategy extends FindPricingWithCurrentPriceFactoryStrategyDeprecated, for removal: This API element is subject to removal in a future version.Since 2105. UseSubscriptionFindDiscountValuesHookinstead.This strategy should replace the FindPricingWithCurrentPriceFactoryStrategy and implements the price/discount finding strategy forProductModels.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description FindSubscriptionPricingWithCurrentPriceFactoryStrategy()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected PriceValuecreatePriceValueForLastRecurringPrice(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan)Deprecated, for removal: This API element is subject to removal in a future version.PriceValuefindBasePrice(AbstractOrderEntryModel entry)Deprecated, for removal: This API element is subject to removal in a future version.Resolves the subscription price value for the given AbstractOrderEntryModel by searching aProductModelthat is applicable for the entry's subscription product.java.util.List<DiscountValue>findDiscountValues(AbstractOrderEntryModel entry)Deprecated, for removal: This API element is subject to removal in a future version.Find applicable DiscountValues for the target order entry.protected SubscriptionCommercePriceServicegetCommercePriceService()Deprecated, for removal: This API element is subject to removal in a future version.protected java.util.List<DiscountValue>getDiscountValuesWhenBillingFrequency(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan)Deprecated, for removal: This API element is subject to removal in a future version.protected SubscriptionProductServicegetSubscriptionProductService()Deprecated, for removal: This API element is subject to removal in a future version.voidsetCommercePriceService(SubscriptionCommercePriceService commercePriceService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetSubscriptionProductService(SubscriptionProductService subscriptionProductService)Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class de.hybris.platform.order.strategies.calculation.impl.FindPricingWithCurrentPriceFactoryStrategy
afterPropertiesSet, findDiscountValues, findTaxValues, getCurrentPriceFactory, getDiscountInformation, getFindDiscountValuesHooks, getFindPriceHooks, getPriceInformation, getTaxInformation, isNetUser, setApplicationContext, setFindDiscountValuesHooks, setFindPriceHooks
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.order.strategies.calculation.ServiceLayerOnlyCalculationVerifier
isSLOnly
-
-
-
-
Method Detail
-
findBasePrice
@Nonnull public PriceValue findBasePrice(@Nonnull AbstractOrderEntryModel entry) throws CalculationException
Deprecated, for removal: This API element is subject to removal in a future version.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 standard method in the super implementations is called- Specified by:
findBasePricein interfaceFindPriceStrategy- Overrides:
findBasePricein classFindPricingWithCurrentPriceFactoryStrategy- Parameters:
entry-AbstractOrderEntryModel- Returns:
PriceValue- Throws:
CalculationException
-
createPriceValueForLastRecurringPrice
protected PriceValue createPriceValueForLastRecurringPrice(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan)
Deprecated, for removal: This API element is subject to removal in a future version.
-
findDiscountValues
@Nonnull public java.util.List<DiscountValue> findDiscountValues(AbstractOrderEntryModel entry) throws CalculationException
Deprecated, for removal: This API element is subject to removal in a future version.Find applicable DiscountValues for the target order entry.- Specified by:
findDiscountValuesin interfaceFindDiscountValuesStrategy- Overrides:
findDiscountValuesin classFindPricingWithCurrentPriceFactoryStrategy- Returns:
- List of
DiscountValues - Throws:
CalculationException
-
getDiscountValuesWhenBillingFrequency
protected java.util.List<DiscountValue> getDiscountValuesWhenBillingFrequency(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getCommercePriceService
protected SubscriptionCommercePriceService getCommercePriceService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setCommercePriceService
public void setCommercePriceService(SubscriptionCommercePriceService commercePriceService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSubscriptionProductService
protected SubscriptionProductService getSubscriptionProductService()
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- subscription product service
-
setSubscriptionProductService
public void setSubscriptionProductService(SubscriptionProductService subscriptionProductService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-