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, txManager

    Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

    tenant
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.hybris.platform.util.PriceValue
    Determines the base price for the given .
     
     
    protected Double
    Returns the price amount of the given for the

    Methods inherited from class de.hybris.platform.order.strategies.calculation.impl.FindPricingWithCurrentPriceFactoryStrategy

    afterPropertiesSet, findDiscountValues, 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
  • Constructor Details

  • 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 entire PriceRowModel.getProductOfferingPrice() hierarchy and sums up the one time charges with pay on checkout price event.
      Specified by:
      findBasePrice in interface de.hybris.platform.order.strategies.calculation.FindPriceStrategy
      Overrides:
      findBasePrice in class de.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 determined
      billingTime - the billing time against which the price event is checked
      discounts - the discounts to be applied to the price
      Returns:
      the price amount for the given
    • getCommercePriceService

      protected TmaCommercePriceService getCommercePriceService()
    • getBillingTimeService

      protected TmaBillingTimeService getBillingTimeService()