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:
-
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, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaCalculationService(de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategy orderRequiresCalculationStrategy) -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateEntries(AbstractOrderModel order, boolean forceRecalculate) protected voidcalculateTotals(AbstractOrderModel order, boolean recalculate, Map<de.hybris.platform.util.TaxValue, Map<Set<de.hybris.platform.util.TaxValue>, Double>> taxValueMap) protected doubleconvertFromNetToGrossPriceIfNeeded(de.hybris.platform.util.PriceValue priceValue, boolean toNet, CurrencyModel orderCurrency) Creates a composite cart price for storing prices.protected TmaAbstractOrderChargePriceModelcreateCartPriceForDiscountValue(AbstractOrderEntryModel entry, de.hybris.platform.util.DiscountValue discountValue) Deprecated.since 2007.protected TmaAbstractOrderChargePriceModelcreateCartPriceForDiscountValue(AbstractOrderModel order, de.hybris.platform.util.DiscountValue discountValue) Deprecated.since 2007.protected de.hybris.platform.servicelayer.i18n.CommonI18NServiceprotected de.hybris.platform.order.strategies.calculation.FindDeliveryCostStrategyprotected TmaAbstractOrderPriceModelgetDeliveryPrice(AbstractOrderModel order, Collection<de.hybris.platform.util.TaxValue> relativeTaxValues) protected TmaFindAbstractOrderEntryPriceStrategyprotected de.hybris.platform.servicelayer.keygenerator.KeyGeneratorDeprecated.since 2007.protected TmaAbstractOrderPriceBuilderprotected de.hybris.platform.order.strategies.calculation.OrderRequiresCalculationStrategyprotected de.hybris.platform.order.strategies.calculation.FindPaymentCostStrategyprotected TmaAbstractOrderPriceModelgetPaymentPrice(AbstractOrderModel order, Collection<de.hybris.platform.util.TaxValue> relativeTaxValues) protected voidresetAdditionalCosts(AbstractOrderModel order, Collection<de.hybris.platform.util.TaxValue> relativeTaxValues) protected voidvoidsetDefaultCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService defaultCommonI18NService) voidsetDeliveryCostStrategy(de.hybris.platform.order.strategies.calculation.FindDeliveryCostStrategy deliveryCostStrategy) voidsetFindAbstractOrderEntryPriceStrategy(TmaFindAbstractOrderEntryPriceStrategy findAbstractOrderEntryPriceStrategy) voidsetKeyGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator keyGenerator) Deprecated.since 2007.voidsetOrderPriceBuilder(TmaAbstractOrderPriceBuilder orderPriceBuilder) voidsetPaymentCostStrategy(de.hybris.platform.order.strategies.calculation.FindPaymentCostStrategy paymentCostStrategy) Methods inherited from class de.hybris.platform.order.impl.DefaultCalculationService
addAbsoluteEntryTaxValue, addRelativeEntryTaxValue, applyGrossMixedRate, applyNetMixedRate, calculate, calculate, calculateAbsoluteTotalTaxValue, calculateDiscountValues, calculateSubtotal, calculateTotals, calculateTotals, calculateTotalTaxValues, calculateTotalTaxValues, convertDiscountValues, convertPriceIfNecessary, findBasePrice, findDiscountValues, findGlobalDiscounts, findTaxValues, getTaxCorrectionFactor, getTaxFreeEntrySupport, getTaxFreeSubTotal, getUnappliedRelativeTaxValues, hasJaloStrategies, isAllEntriesTaxed, isTaxFreeEntrySupport, mustHandleTaxFreeEntries, recalculate, recalculate, recalculate, recalculateOrderEntryIfNeeded, refreshOrder, requiresCalculation, resetAllValues, saveOrder, setCalculatedStatus, setCalculatedStatus, setCommonI18NService, setFindDeliveryCostStrategy, setFindDiscountsStrategies, setFindPaymentCostStrategy, setFindPriceStrategy, setFindTaxesStrategies, setOrderRequiresCalculationStrategy, setTaxFreeEntrySupportMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.order.CalculationService
calculate, calculate, calculateTotals, calculateTotals, recalculate, recalculate, recalculate, requiresCalculation
-
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:
calculateEntriesin classde.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) Deprecated.since 2007. Use insteadTmaAbstractOrderDiscountValuePriceBuilder.buildPrice(DiscountValue, AbstractOrderModel, List) -
createCartPriceForDiscountValue
@Deprecated(since="2007") protected TmaAbstractOrderChargePriceModel createCartPriceForDiscountValue(AbstractOrderModel order, de.hybris.platform.util.DiscountValue discountValue) Deprecated.since 2007. Use insteadTmaAbstractOrderDiscountValuePriceBuilder.buildPrice(DiscountValue, AbstractOrderModel, List) -
createCartPrice
Description copied from interface:TmaCalculationServiceCreates a composite cart price for storing prices.- Specified by:
createCartPricein interfaceTmaCalculationService- Returns:
- The composite price created
-
resetAllValues
protected void resetAllValues(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException - Overrides:
resetAllValuesin classde.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:
resetAdditionalCostsin classde.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>, throws de.hybris.platform.order.exceptions.CalculationExceptionDouble>> taxValueMap) - Overrides:
calculateTotalsin classde.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
-
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
-
setOrderPriceBuilder
-
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()
-