Class DefaultExternalTaxesService
java.lang.Object
de.hybris.platform.commerceservices.externaltax.impl.DefaultExternalTaxesService
- All Implemented Interfaces:
ExternalTaxesService
Base
ExternalTaxesService implementation, to determine if the 3rd party call is necessary and apply the
results to the cart.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancalculateExternalTaxes(AbstractOrderModel abstractOrder) Calculate the taxes for order via an external servicevoidRemoves tax document from session if presentprotected voidclearTaxValues(AbstractOrderModel abstractOrder) Resets all the tax values for order and its entriesprotected ApplyExternalTaxesStrategyprotected CalculateExternalTaxesStrategyprotected DecideExternalTaxesStrategyprotected ModelServiceprotected RecalculateExternalTaxesStrategyprotected ExternalTaxDocumentgetSessionExternalTaxDocument(AbstractOrderModel abstractOrder) protected voidsaveOrder(AbstractOrderModel abstractOrder) voidsetApplyExternalTaxesStrategy(ApplyExternalTaxesStrategy applyExternalTaxesStrategy) protected voidvoidsetCalculateExternalTaxesStrategy(CalculateExternalTaxesStrategy calculateExternalTaxesStrategy) voidsetDecideExternalTaxesStrategy(DecideExternalTaxesStrategy decideExternalTaxesStrategy) voidsetModelService(ModelService modelService) voidsetRecalculateExternalTaxesStrategy(RecalculateExternalTaxesStrategy recalculateExternalTaxesStrategy) voidsetSessionService(SessionService sessionService)
-
Field Details
-
SESSION_EXTERNAL_TAX_DOCUMENT
- See Also:
-
-
Constructor Details
-
DefaultExternalTaxesService
public DefaultExternalTaxesService()
-
-
Method Details
-
calculateExternalTaxes
Description copied from interface:ExternalTaxesServiceCalculate the taxes for order via an external service- Specified by:
calculateExternalTaxesin interfaceExternalTaxesService- Parameters:
abstractOrder- A Hybris cart or order- Returns:
- True if calculation was successful and false otherwise
-
clearTaxValues
Resets all the tax values for order and its entries- Parameters:
abstractOrder- A hybris cart or order
-
getSessionExternalTaxDocument
-
saveOrder
-
setCalculatedStatus
-
clearSessionTaxDocument
public void clearSessionTaxDocument()Description copied from interface:ExternalTaxesServiceRemoves tax document from session if present- Specified by:
clearSessionTaxDocumentin interfaceExternalTaxesService
-
getCalculateExternalTaxesStrategy
-
setCalculateExternalTaxesStrategy
public void setCalculateExternalTaxesStrategy(CalculateExternalTaxesStrategy calculateExternalTaxesStrategy) -
getApplyExternalTaxesStrategy
-
setApplyExternalTaxesStrategy
-
getDecideExternalTaxesStrategy
-
setDecideExternalTaxesStrategy
-
getModelService
-
setModelService
-
getRecalculateExternalTaxesStrategy
-
setRecalculateExternalTaxesStrategy
public void setRecalculateExternalTaxesStrategy(RecalculateExternalTaxesStrategy recalculateExternalTaxesStrategy) -
getSessionService
-
setSessionService
-