Class DefaultTotalRefundCalculationStrategy
java.lang.Object
de.hybris.platform.travelservices.ordercancel.impl.DefaultTotalRefundCalculationStrategy
- All Implemented Interfaces:
TotalRefundCalculationStrategy
public class DefaultTotalRefundCalculationStrategy
extends Object
implements TotalRefundCalculationStrategy
Default implementation of
TotalRefundCalculationStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,RefundActionStrategy> getTotalToRefund(OrderModel order) Returns the BigDecimal corresponding to the total amount to be refunded when cancelling the orderprotected TravelRulesServicevoidsetRefundActionStrategyMap(Map<String, RefundActionStrategy> refundActionStrategyMap) voidsetTravelRulesService(TravelRulesService travelRulesService)
-
Constructor Details
-
DefaultTotalRefundCalculationStrategy
public DefaultTotalRefundCalculationStrategy()
-
-
Method Details
-
getTotalToRefund
Description copied from interface:TotalRefundCalculationStrategyReturns the BigDecimal corresponding to the total amount to be refunded when cancelling the order- Specified by:
getTotalToRefundin interfaceTotalRefundCalculationStrategy- Parameters:
order- as the orderModel to be cancelled- Returns:
- BigDecimal corresponding to the total amount to be refunded
-
getTravelRulesService
- Returns:
- the travelRulesService
-
setTravelRulesService
- Parameters:
travelRulesService- the travelRulesService to set
-
getRefundActionStrategyMap
- Returns:
- the refundActionStrategyMap
-
setRefundActionStrategyMap
- Parameters:
refundActionStrategyMap- the refundActionStrategyMap to set
-