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,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 FindPricingWithCurrentPriceFactoryStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
This strategy should replace the FindPricingWithCurrentPriceFactoryStrategy and implements the price/discount finding
strategy for
ProductModels.- See Also:
-
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, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected PriceValuecreatePriceValueForLastRecurringPrice(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan) Deprecated, for removal: This API element is subject to removal in a future version.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.Deprecated, for removal: This API element is subject to removal in a future version.Find applicable DiscountValues for the target order entry.protected SubscriptionCommercePriceServiceDeprecated, for removal: This API element is subject to removal in a future version.protected List<DiscountValue>getDiscountValuesWhenBillingFrequency(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan) Deprecated, for removal: This API element is subject to removal in a future version.protected SubscriptionProductServiceDeprecated, 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, setFindPriceHooksMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
getCurrentTenant, setBeanName, setCurrentTenant, writeReplaceMethods 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
-
FindSubscriptionPricingWithCurrentPriceFactoryStrategy
public FindSubscriptionPricingWithCurrentPriceFactoryStrategy()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
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 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 List<DiscountValue> getDiscountValuesWhenBillingFrequency(AbstractOrderModel order, SubscriptionPricePlanModel pricePlan) Deprecated, for removal: This API element is subject to removal in a future version. -
getCommercePriceService
Deprecated, for removal: This API element is subject to removal in a future version. -
setCommercePriceService
Deprecated, for removal: This API element is subject to removal in a future version. -
getSubscriptionProductService
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- subscription product service
-
setSubscriptionProductService
Deprecated, for removal: This API element is subject to removal in a future version.
-
SubscriptionFindDiscountValuesHookinstead.