Class SapCartCalculationService
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.sap.sapsalesordersimulation.service.impl.SapCartCalculationService
- All Implemented Interfaces:
de.hybris.platform.order.CalculationService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class SapCartCalculationService
extends de.hybris.platform.order.impl.DefaultCalculationService
SapCartCalculationService
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculate(AbstractOrderModel order) protected voidcalculateOrder(AbstractOrderModel order) voidcalculateTotals(AbstractOrderModel order, boolean recalculate) protected de.hybris.platform.util.PriceValueprotected List<de.hybris.platform.util.DiscountValue>protected PricingServiceprotected SalesOrderSimulationServicevoidrecalculate(AbstractOrderModel order) protected voidresetAdditionalCosts(AbstractOrderModel order, Collection<de.hybris.platform.util.TaxValue> relativeTaxValues) protected voidprotected MapresetAllValues(AbstractOrderModel order) voidsetPricingService(PricingService pricingService) voidsetSalesOrderSimulationService(SalesOrderSimulationService salesOrderSimulationService) voidsetSapSimulateSalesOrderEnablementService(SapSimulateSalesOrderEnablementService sapSimulateSalesOrderEnablementService) Methods inherited from class de.hybris.platform.order.impl.DefaultCalculationService
addAbsoluteEntryTaxValue, addRelativeEntryTaxValue, applyGrossMixedRate, applyNetMixedRate, calculate, calculateAbsoluteTotalTaxValue, calculateDiscountValues, calculateEntries, calculateSubtotal, calculateTotals, calculateTotals, calculateTotalTaxValues, calculateTotalTaxValues, convertDiscountValues, convertPriceIfNecessary, findGlobalDiscounts, findTaxValues, getTaxCorrectionFactor, getTaxFreeEntrySupport, getTaxFreeSubTotal, getUnappliedRelativeTaxValues, hasJaloStrategies, isAllEntriesTaxed, isTaxFreeEntrySupport, mustHandleTaxFreeEntries, recalculate, recalculate, recalculateOrderEntryIfNeeded, refreshOrder, requiresCalculation, 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, writeReplace
-
Constructor Details
-
SapCartCalculationService
public SapCartCalculationService()
-
-
Method Details
-
getSapSimulateSalesOrderEnablementService
-
setSapSimulateSalesOrderEnablementService
public void setSapSimulateSalesOrderEnablementService(SapSimulateSalesOrderEnablementService sapSimulateSalesOrderEnablementService) -
calculate
public void calculate(AbstractOrderModel order) throws de.hybris.platform.order.exceptions.CalculationException - Specified by:
calculatein interfacede.hybris.platform.order.CalculationService- Overrides:
calculatein classde.hybris.platform.order.impl.DefaultCalculationService- Throws:
de.hybris.platform.order.exceptions.CalculationException
-
calculateOrder
-
recalculate
public void recalculate(AbstractOrderModel order) throws de.hybris.platform.order.exceptions.CalculationException - Specified by:
recalculatein interfacede.hybris.platform.order.CalculationService- Overrides:
recalculatein classde.hybris.platform.order.impl.DefaultCalculationService- Throws:
de.hybris.platform.order.exceptions.CalculationException
-
calculateTotals
public void calculateTotals(AbstractOrderModel order, boolean recalculate) throws de.hybris.platform.order.exceptions.CalculationException - Specified by:
calculateTotalsin interfacede.hybris.platform.order.CalculationService- Overrides:
calculateTotalsin classde.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:
resetAllValuesin classde.hybris.platform.order.impl.DefaultCalculationService- Throws:
de.hybris.platform.order.exceptions.CalculationException
-
resetAllValues
protected Map resetAllValues(AbstractOrderModel order) 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
-
findDiscountValues
protected List<de.hybris.platform.util.DiscountValue> findDiscountValues(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException - Overrides:
findDiscountValuesin classde.hybris.platform.order.impl.DefaultCalculationService- Throws:
de.hybris.platform.order.exceptions.CalculationException
-
findBasePrice
protected de.hybris.platform.util.PriceValue findBasePrice(AbstractOrderEntryModel entry) throws de.hybris.platform.order.exceptions.CalculationException - Overrides:
findBasePricein classde.hybris.platform.order.impl.DefaultCalculationService- Throws:
de.hybris.platform.order.exceptions.CalculationException
-
getSalesOrderSimulationService
-
setSalesOrderSimulationService
-
getPricingService
-
setPricingService
-