Class PartiallyDelayedPaymentOptionStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.payment.impl.PartiallyDelayedPaymentOptionStrategy
- All Implemented Interfaces:
PaymentOptionCreationStrategy
public class PartiallyDelayedPaymentOptionStrategy
extends Object
implements PaymentOptionCreationStrategy
Partially delayed payment option strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(AbstractOrderModel abstractOrder) Creates aPaymentOptionInfofrom a cart/order for a specific scenarioprotected BookingServiceprotected List<EntryTypePaymentInfoCreationStrategy>protected booleanisEligibleForDelayedPayment(AbstractOrderModel abstractOrder) Checks if the cart is eligible for a delayed payment (it must not contain only transport entries or at least one of the rate plans linked to the booked accommodations must provide at least one guarantee)voidsetBookingService(BookingService bookingService) voidsetEntryTypePaymentInfoCreationStrategies(List<EntryTypePaymentInfoCreationStrategy> entryTypePaymentInfoCreationStrategies)
-
Constructor Details
-
PartiallyDelayedPaymentOptionStrategy
public PartiallyDelayedPaymentOptionStrategy()
-
-
Method Details
-
create
Description copied from interface:PaymentOptionCreationStrategyCreates aPaymentOptionInfofrom a cart/order for a specific scenario- Specified by:
createin interfacePaymentOptionCreationStrategy- Parameters:
abstractOrder- the abstract order- Returns:
- payment option info
-
isEligibleForDelayedPayment
Checks if the cart is eligible for a delayed payment (it must not contain only transport entries or at least one of the rate plans linked to the booked accommodations must provide at least one guarantee)- Parameters:
abstractOrder-- Returns:
-
getEntryTypePaymentInfoCreationStrategies
- Returns:
- entryTypePaymentInfoCreationStrategies
-
setEntryTypePaymentInfoCreationStrategies
public void setEntryTypePaymentInfoCreationStrategies(List<EntryTypePaymentInfoCreationStrategy> entryTypePaymentInfoCreationStrategies) - Parameters:
entryTypePaymentInfoCreationStrategies- the entryTypePaymentInfoCreationStrategies to set
-
getBookingService
- Returns:
- bookingService
-
setBookingService
- Parameters:
bookingService- the bookingService to set
-