Class DefaultAccommodationTotalRefundCalculationStrategy
java.lang.Object
de.hybris.platform.travelservices.accommodation.strategies.impl.TransactionCalculationStrategy
de.hybris.platform.travelservices.ordercancel.impl.DefaultAccommodationTotalRefundCalculationStrategy
- All Implemented Interfaces:
TotalRefundCalculationStrategy
public class DefaultAccommodationTotalRefundCalculationStrategy
extends TransactionCalculationStrategy
implements TotalRefundCalculationStrategy
Default implementation of
TotalRefundCalculationStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CancelPenaltiesCalculationServicegetTotalToRefund(OrderModel orderModel) Returns the BigDecimal corresponding to the total amount to be refunded when cancelling the ordervoidsetCancelPenaltiesCalculationService(CancelPenaltiesCalculationService cancelPenaltiesCalculationService) Methods inherited from class de.hybris.platform.travelservices.accommodation.strategies.impl.TransactionCalculationStrategy
getAvailableFunds, getConfigurationService, getEntriesAmount, getPaymentAuthourizationAmount, getTravelCartService, getValidPaymentTransactions, getValidPaymentTransactionsForType, setConfigurationService, setTravelCartService
-
Constructor Details
-
DefaultAccommodationTotalRefundCalculationStrategy
public DefaultAccommodationTotalRefundCalculationStrategy()
-
-
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:
orderModel- as the orderModel to be cancelled- Returns:
- BigDecimal corresponding to the total amount to be refunded
-
getCancelPenaltiesCalculationService
- Returns:
- the defaultCancelPenaltiesCalculationService
-
setCancelPenaltiesCalculationService
public void setCancelPenaltiesCalculationService(CancelPenaltiesCalculationService cancelPenaltiesCalculationService) - Parameters:
defaultCancelPenaltiesCalculationService- the defaultCancelPenaltiesCalculationService to set
-