Class DefaultTmaCalculationService

  • All Implemented Interfaces:
    TmaCalculationService, de.hybris.platform.order.CalculationService, java.io.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:
    Serialized Form
    • Constructor Detail

      • DefaultTmaCalculationService

        public DefaultTmaCalculationService()
    • Method Detail

      • calculateTotals

        public void calculateTotals​(AbstractOrderEntryModel entry,
                                    boolean recalculate)
        Specified by:
        calculateTotals in interface de.hybris.platform.order.CalculationService
        Overrides:
        calculateTotals in class de.hybris.platform.order.impl.DefaultCalculationService
      • calculateTotals

        public void calculateTotals​(AbstractOrderModel order,
                                    boolean recalculate)
                             throws de.hybris.platform.order.exceptions.CalculationException
        Specified by:
        calculateTotals in interface de.hybris.platform.order.CalculationService
        Overrides:
        calculateTotals in class de.hybris.platform.order.impl.DefaultCalculationService
        Throws:
        de.hybris.platform.order.exceptions.CalculationException
      • 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,
                                            java.util.Collection<de.hybris.platform.util.TaxValue> relativeTaxValues)
        Overrides:
        resetAdditionalCosts in class de.hybris.platform.order.impl.DefaultCalculationService
      • convertFromNetToGrossPriceIfNeeded

        protected double convertFromNetToGrossPriceIfNeeded​(de.hybris.platform.util.PriceValue priceValue,
                                                            boolean toNet,
                                                            CurrencyModel orderCurrency)
      • 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

        protected de.hybris.platform.servicelayer.keygenerator.KeyGenerator getKeyGenerator()
      • setKeyGenerator

        public void setKeyGenerator​(de.hybris.platform.servicelayer.keygenerator.KeyGenerator keyGenerator)
      • getDefaultCommonI18NService

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

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