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 Details

    • PartiallyDelayedPaymentOptionStrategy

      public PartiallyDelayedPaymentOptionStrategy()
  • Method Details

    • create

      public PaymentOptionInfo create(AbstractOrderModel abstractOrder)
      Description copied from interface: PaymentOptionCreationStrategy
      Creates a PaymentOptionInfo from a cart/order for a specific scenario
      Specified by:
      create in interface PaymentOptionCreationStrategy
      Parameters:
      abstractOrder - the abstract order
      Returns:
      payment option info
    • isEligibleForDelayedPayment

      protected boolean isEligibleForDelayedPayment(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)
      Parameters:
      abstractOrder -
      Returns:
    • getEntryTypePaymentInfoCreationStrategies

      protected List<EntryTypePaymentInfoCreationStrategy> getEntryTypePaymentInfoCreationStrategies()
      Returns:
      entryTypePaymentInfoCreationStrategies
    • setEntryTypePaymentInfoCreationStrategies

      public void setEntryTypePaymentInfoCreationStrategies(List<EntryTypePaymentInfoCreationStrategy> entryTypePaymentInfoCreationStrategies)
      Parameters:
      entryTypePaymentInfoCreationStrategies - the entryTypePaymentInfoCreationStrategies to set
    • getBookingService

      protected BookingService getBookingService()
      Returns:
      bookingService
    • setBookingService

      public void setBookingService(BookingService bookingService)
      Parameters:
      bookingService - the bookingService to set