Class PayNowPaymentOptionStrategy

java.lang.Object
de.hybris.platform.travelservices.strategies.payment.impl.PayNowPaymentOptionStrategy
All Implemented Interfaces:
PaymentOptionCreationStrategy

public class PayNowPaymentOptionStrategy extends Object implements PaymentOptionCreationStrategy
Partially delayed payment option strategy.
  • Constructor Details

    • PayNowPaymentOptionStrategy

      public PayNowPaymentOptionStrategy()
  • 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
    • isApplicableForOrder

      protected boolean isApplicableForOrder(AbstractOrderModel abstractOrder)
      Checks if payment option is applicable for given order
      Parameters:
      abstractOrder - the order
      Returns:
      true if current payment option applicable for given order
    • getOrderTotalToPay

      protected BigDecimal getOrderTotalToPay(AbstractOrderModel abstractOrder)
      Calculates total to pay.
      Parameters:
      abstractOrder - the order
      Returns:
      the total to pay
    • getEntryTypePaymentInfoCreationStrategies

      protected List<EntryTypePaymentInfoCreationStrategy> getEntryTypePaymentInfoCreationStrategies()
      Gets entry type payment info creation strategies.
      Returns:
      the entry type payment info creation strategies
    • setEntryTypePaymentInfoCreationStrategies

      public void setEntryTypePaymentInfoCreationStrategies(List<EntryTypePaymentInfoCreationStrategy> entryTypePaymentInfoCreationStrategies)
      Sets the entry type payment info creation strategies.
      Parameters:
      entryTypePaymentInfoCreationStrategies - the entry type payment info creation strategies
    • getBookingService

      protected BookingService getBookingService()
      Gets booking service.
      Returns:
      the booking service
    • setBookingService

      public void setBookingService(BookingService bookingService)
      Sets booking service.
      Parameters:
      bookingService - the booking service