Class DefaultTmaAbstractOrderCartPriceBuilder

java.lang.Object
de.hybris.platform.b2ctelcoservices.pricing.strategy.builder.order.DefaultTmaAbstractOrderCartPriceBuilder
All Implemented Interfaces:
TmaAbstractOrderPriceBuilder
Direct Known Subclasses:
DefaultTmaAbstractOrderDiscountPriceBuilder, DefaultTmaAbstractOrderPriceBuilder

public abstract class DefaultTmaAbstractOrderCartPriceBuilder extends Object implements TmaAbstractOrderPriceBuilder
Default implementation of TmaAbstractOrderPriceBuilder responsible for computing the price values.
Since:
2007
  • Constructor Details

    • DefaultTmaAbstractOrderCartPriceBuilder

      public DefaultTmaAbstractOrderCartPriceBuilder()
  • Method Details

    • retrieveTaxRate

      protected Double retrieveTaxRate(Double price, AbstractOrderModel order, List<de.hybris.platform.util.TaxValue> taxes)
      Retrieves the tax rate on the given cart price considering the given taxes.
      Parameters:
      price - the price value to be set on the order price
      order - the order for which the price is created
      taxes - the taxes to be applied on the order price
    • setPriceValues

      protected void setPriceValues(Double price, AbstractOrderModel order, TmaAbstractOrderComponentPriceModel orderPrice, Double taxRate)
      Populates the price values on the given cart price by taking into account the tax rate
      Parameters:
      price - the price value to be set on the order price
      order - the order for which the price is created
      orderPrice - the order price for which price values will be updated
      taxRate - the tax rate to be considered when computing the price values
    • getBillingTimeService

      protected TmaBillingTimeService getBillingTimeService()
    • setBillingTimeService

      public void setBillingTimeService(TmaBillingTimeService billingTimeService)
    • getTmaRetrieveTaxRateStrategy

      protected TmaRetrieveTaxRateStrategy getTmaRetrieveTaxRateStrategy()
    • setTmaRetrieveTaxRateStrategy

      public void setTmaRetrieveTaxRateStrategy(TmaRetrieveTaxRateStrategy tmaRetrieveTaxRateStrategy)