Class DefaultTmaFindOrderEntryPriceStrategy
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.b2ctelcoservices.pricing.strategy.impl.DefaultTmaFindOrderEntryPriceStrategy
- All Implemented Interfaces:
de.hybris.platform.order.strategies.calculation.FindDiscountValuesStrategy,de.hybris.platform.order.strategies.calculation.FindPriceStrategy,de.hybris.platform.order.strategies.calculation.FindTaxValuesStrategy,de.hybris.platform.order.strategies.calculation.ServiceLayerOnlyCalculationVerifier,de.hybris.platform.servicelayer.user.UserNetCheckingStrategy,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class DefaultTmaFindOrderEntryPriceStrategy
extends de.hybris.platform.order.strategies.calculation.impl.FindPricingWithCurrentPriceFactoryStrategy
Custom implementation for finding the base price for a given entry.
- Since:
- 2007
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.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
ConstructorsConstructorDescriptionDefaultTmaFindOrderEntryPriceStrategy(TmaCommercePriceService commercePriceService, TmaBillingTimeService billingTimeService) -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.util.PriceValueDetermines the base price for the given .protected TmaBillingTimeServiceprotected TmaCommercePriceServiceprotected DoublegetPriceAmount(TmaProductOfferingPriceModel productOfferingPrice, BillingTimeModel billingTime, List<TmaProdOfferPriceAlterationModel> discounts) Returns the price amount of the given for theMethods inherited from class de.hybris.platform.order.strategies.calculation.impl.FindPricingWithCurrentPriceFactoryStrategy
afterPropertiesSet, findDiscountValues, 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
-
DefaultTmaFindOrderEntryPriceStrategy
public DefaultTmaFindOrderEntryPriceStrategy(TmaCommercePriceService commercePriceService, TmaBillingTimeService billingTimeService)
-
-
Method Details
-
findBasePrice
public de.hybris.platform.util.PriceValue findBasePrice(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException Determines the base price for the given . The logic iterates over the entirePriceRowModel.getProductOfferingPrice()hierarchy and sums up the one time charges with pay on checkout price event.- Specified by:
findBasePricein interfacede.hybris.platform.order.strategies.calculation.FindPriceStrategy- Overrides:
findBasePricein classde.hybris.platform.order.strategies.calculation.impl.FindPricingWithCurrentPriceFactoryStrategy- Parameters:
entry- the entry for which the base price is computed- Returns:
- the base price amount
- Throws:
de.hybris.platform.order.exceptions.CalculationException- in case no price is available for the given
-
getPriceAmount
protected Double getPriceAmount(TmaProductOfferingPriceModel productOfferingPrice, BillingTimeModel billingTime, List<TmaProdOfferPriceAlterationModel> discounts) Returns the price amount of the given for the- Parameters:
productOfferingPrice- the price from which the amount of all one time charges is determinedbillingTime- the billing time against which the price event is checkeddiscounts- the discounts to be applied to the price- Returns:
- the price amount for the given
-
getCommercePriceService
-
getBillingTimeService
-