Class AccommodationRefundPaymentTransactionStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.payment.impl.AccommodationRefundPaymentTransactionStrategy
- All Implemented Interfaces:
RefundPaymentTransactionStrategy
public class AccommodationRefundPaymentTransactionStrategy
extends Object
implements RefundPaymentTransactionStrategy
Concrete implementation of
RefundPaymentTransactionStrategy to handle refund in an accommodation scenario
Refund can be triggered both on a given subset of entries (that is on a group) or on the whole order split by
accommodation entry group if no subset is passed-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PaymentTransactionEntryCreationStrategyvoidhandleRefund(AbstractOrderModel abstractOrder, OrderEntryType entryType, List<AbstractOrderEntryModel> entries) This method triggers the creation of refund payment transaction entries according with the specific journey it refers tovoidsetAccommodationRefundTransactionEntryCreationStrategy(PaymentTransactionEntryCreationStrategy accommodationRefundTransactionEntryCreationStrategy)
-
Constructor Details
-
AccommodationRefundPaymentTransactionStrategy
public AccommodationRefundPaymentTransactionStrategy()
-
-
Method Details
-
handleRefund
public void handleRefund(AbstractOrderModel abstractOrder, OrderEntryType entryType, List<AbstractOrderEntryModel> entries) Description copied from interface:RefundPaymentTransactionStrategyThis method triggers the creation of refund payment transaction entries according with the specific journey it refers to- Specified by:
handleRefundin interfaceRefundPaymentTransactionStrategy
-
getAccommodationRefundTransactionEntryCreationStrategy
protected PaymentTransactionEntryCreationStrategy getAccommodationRefundTransactionEntryCreationStrategy()- Returns:
- accommodationRefundTransactionEntryCreationStrategy
-
setAccommodationRefundTransactionEntryCreationStrategy
public void setAccommodationRefundTransactionEntryCreationStrategy(PaymentTransactionEntryCreationStrategy accommodationRefundTransactionEntryCreationStrategy) - Parameters:
accommodationRefundTransactionEntryCreationStrategy- the accommodationRefundTransactionEntryCreationStrategy to set
-