Class DefaultSLFindPaymentCostStrategy
java.lang.Object
de.hybris.platform.order.strategies.calculation.impl.servicelayer.DefaultSLFindPaymentCostStrategy
- All Implemented Interfaces:
FindPaymentCostStrategy,ServiceLayerOnlyCalculationVerifier
Service-Layer implementation of
FindPaymentCostStrategy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPaymentCost(AbstractOrderModel order) Returns cost of the given order that is related with payment.protected PriceValuebooleanisSLOnly()Implement this and return true if you are using only service-layer modelsvoidsetCommonI18NService(CommonI18NService commonI18NService) voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
Constructor Details
-
DefaultSLFindPaymentCostStrategy
public DefaultSLFindPaymentCostStrategy()
-
-
Method Details
-
getPaymentCost
Description copied from interface:FindPaymentCostStrategyReturns cost of the given order that is related with payment.- Specified by:
getPaymentCostin interfaceFindPaymentCostStrategy- Parameters:
order-AbstractOrderModel- Returns:
PriceValuerepresenting payment cost introduced in the order.
-
isSLOnly
public boolean isSLOnly()Description copied from interface:ServiceLayerOnlyCalculationVerifierImplement this and return true if you are using only service-layer models- Specified by:
isSLOnlyin interfaceServiceLayerOnlyCalculationVerifier- Returns:
- true, if only service-layer models are used
-
getPaymentCostValue
- Throws:
CalculationException
-
setFlexibleSearchService
-
setCommonI18NService
-