Class DefaultTmaCalculationService

java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.order.impl.DefaultCalculationService
de.hybris.platform.b2ctelcoservices.pricing.services.impl.DefaultTmaCalculationService
All Implemented Interfaces:
TmaCalculationService, de.hybris.platform.order.CalculationService, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class DefaultTmaCalculationService extends de.hybris.platform.order.impl.DefaultCalculationService implements TmaCalculationService
Custom implementation of the DefaultCalculationService providing enhancements for Telco specific operations.
Since:
6.7
See Also:
  • Constructor Details

    • DefaultTmaCalculationService

      public DefaultTmaCalculationService(de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy orderRequiresCalculationStrategy)
  • Method Details

    • calculateEntries

      public void calculateEntries(AbstractOrderModel order, boolean forceRecalculate) throws de.hybris.platform.order.exceptions.CalculationException
      Overrides:
      calculateEntries in class de.hybris.platform.order.impl.DefaultCalculationService
      Throws:
      de.hybris.platform.order.exceptions.CalculationException
    • createCartPriceForDiscountValue

      @Deprecated(since="2007") protected TmaAbstractOrderChargePriceModel createCartPriceForDiscountValue(AbstractOrderEntryModel entry, de.hybris.platform.util.DiscountValue discountValue)
    • createCartPriceForDiscountValue

      @Deprecated(since="2007") protected TmaAbstractOrderChargePriceModel createCartPriceForDiscountValue(AbstractOrderModel order, de.hybris.platform.util.DiscountValue discountValue)
    • createCartPrice

      public TmaAbstractOrderPriceModel createCartPrice()
      Description copied from interface: TmaCalculationService
      Creates a composite cart price for storing prices.
      Specified by:
      createCartPrice in interface TmaCalculationService
      Returns:
      The composite price created
    • resetAllValues

      protected void resetAllValues(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException
      Overrides:
      resetAllValues in class de.hybris.platform.order.impl.DefaultCalculationService
      Throws:
      de.hybris.platform.order.exceptions.CalculationException
    • resetAdditionalCosts

      protected void resetAdditionalCosts(AbstractOrderModel order, Collection<de.hybris.platform.util.TaxValue> relativeTaxValues)
      Overrides:
      resetAdditionalCosts in class de.hybris.platform.order.impl.DefaultCalculationService
    • calculateTotals

      protected void calculateTotals(AbstractOrderModel order, boolean recalculate, Map<de.hybris.platform.util.TaxValue,Map<Set<de.hybris.platform.util.TaxValue>,Double>> taxValueMap) throws de.hybris.platform.order.exceptions.CalculationException
      Overrides:
      calculateTotals in class de.hybris.platform.order.impl.DefaultCalculationService
      Throws:
      de.hybris.platform.order.exceptions.CalculationException
    • getPaymentPrice

      protected TmaAbstractOrderPriceModel getPaymentPrice(AbstractOrderModel order, Collection<de.hybris.platform.util.TaxValue> relativeTaxValues)
    • getDeliveryPrice

      protected TmaAbstractOrderPriceModel getDeliveryPrice(AbstractOrderModel order, Collection<de.hybris.platform.util.TaxValue> relativeTaxValues)
    • convertFromNetToGrossPriceIfNeeded

      protected double convertFromNetToGrossPriceIfNeeded(de.hybris.platform.util.PriceValue priceValue, boolean toNet, CurrencyModel orderCurrency)
    • getFindAbstractOrderEntryPriceStrategy

      protected TmaFindAbstractOrderEntryPriceStrategy getFindAbstractOrderEntryPriceStrategy()
    • setFindAbstractOrderEntryPriceStrategy

      public void setFindAbstractOrderEntryPriceStrategy(TmaFindAbstractOrderEntryPriceStrategy findAbstractOrderEntryPriceStrategy)
    • getDeliveryCostStrategy

      protected de.hybris.platform.order.strategies.calculation.FindDeliveryCostStrategy getDeliveryCostStrategy()
    • setDeliveryCostStrategy

      public void setDeliveryCostStrategy(de.hybris.platform.order.strategies.calculation.FindDeliveryCostStrategy deliveryCostStrategy)
    • getPaymentCostStrategy

      protected de.hybris.platform.order.strategies.calculation.FindPaymentCostStrategy getPaymentCostStrategy()
    • setPaymentCostStrategy

      public void setPaymentCostStrategy(de.hybris.platform.order.strategies.calculation.FindPaymentCostStrategy paymentCostStrategy)
    • getKeyGenerator

      @Deprecated(since="2007") protected de.hybris.platform.servicelayer.keygenerator.KeyGenerator getKeyGenerator()
      Deprecated.
      since 2007.
    • setKeyGenerator

      @Deprecated(since="2007") public void setKeyGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator keyGenerator)
      Deprecated.
      since 2007.
    • getOrderPriceBuilder

      protected TmaAbstractOrderPriceBuilder getOrderPriceBuilder()
    • setOrderPriceBuilder

      public void setOrderPriceBuilder(TmaAbstractOrderPriceBuilder orderPriceBuilder)
    • getDefaultCommonI18NService

      protected de.hybris.platform.servicelayer.i18n.CommonI18NService getDefaultCommonI18NService()
    • setDefaultCommonI18NService

      public void setDefaultCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService defaultCommonI18NService)
    • getOrderRequiresCalculationStrategy

      protected de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy getOrderRequiresCalculationStrategy()