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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaBillingTimeServiceprotected TmaRetrieveTaxRateStrategyprotected DoubleretrieveTaxRate(Double price, AbstractOrderModel order, List<de.hybris.platform.util.TaxValue> taxes) Retrieves the tax rate on the given cart price considering the given taxes.voidsetBillingTimeService(TmaBillingTimeService billingTimeService) protected voidsetPriceValues(Double price, AbstractOrderModel order, TmaAbstractOrderComponentPriceModel orderPrice, Double taxRate) Populates the price values on the given cart price by taking into account the tax ratevoidsetTmaRetrieveTaxRateStrategy(TmaRetrieveTaxRateStrategy tmaRetrieveTaxRateStrategy) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.b2ctelcoservices.pricing.strategy.builder.order.TmaAbstractOrderPriceBuilder
buildPrice
-
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 priceorder- the order for which the price is createdtaxes- 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 priceorder- the order for which the price is createdorderPrice- the order price for which price values will be updatedtaxRate- the tax rate to be considered when computing the price values
-
getBillingTimeService
-
setBillingTimeService
-
getTmaRetrieveTaxRateStrategy
-
setTmaRetrieveTaxRateStrategy
-