Class DefaultTravelCommerceCheckoutService

java.lang.Object
de.hybris.platform.commerceservices.order.impl.DefaultCommerceCheckoutService
de.hybris.platform.travelservices.order.impl.DefaultTravelCommerceCheckoutService
All Implemented Interfaces:
de.hybris.platform.commerceservices.order.CommerceCheckoutService, TravelCommerceCheckoutService

public class DefaultTravelCommerceCheckoutService extends de.hybris.platform.commerceservices.order.impl.DefaultCommerceCheckoutService implements TravelCommerceCheckoutService
Extension of DefaultCommerceCheckoutService which has travel specific functions, eg. overrides the standard authorisation of payment
  • Constructor Details

    • DefaultTravelCommerceCheckoutService

      public DefaultTravelCommerceCheckoutService()
  • Method Details

    • authorizePayment

      public PaymentTransactionEntryModel authorizePayment(CommerceCheckoutParameter parameter)
      Specified by:
      authorizePayment in interface de.hybris.platform.commerceservices.order.CommerceCheckoutService
      Overrides:
      authorizePayment in class de.hybris.platform.commerceservices.order.impl.DefaultCommerceCheckoutService
    • getAuthorizationAmountForAmendment

      protected BigDecimal getAuthorizationAmountForAmendment(CartModel cartModel)
    • getAuthorizationAmount

      protected BigDecimal getAuthorizationAmount(CartModel cartModel)
    • setEntriesAgainstTransaction

      public void setEntriesAgainstTransaction(PaymentTransactionModel paymentTransaction, List<Integer> entryNumbers)
      Description copied from interface: TravelCommerceCheckoutService
      This method sets the list of AbstractOrderEntryModel against a payment transaction, retrieving them given the list of entry numbers
      Specified by:
      setEntriesAgainstTransaction in interface TravelCommerceCheckoutService
      Parameters:
      paymentTransaction - the payment transaction
      entryNumbers - the entry numbers
    • getExistingTransaction

      public PaymentTransactionModel getExistingTransaction(List<Integer> entryNumbers, CommerceCheckoutParameter parameter)
      Description copied from interface: TravelCommerceCheckoutService
      Returns the first payment transaction associated with the given order entries having amount equal to the authorization amount in order to avoid creating multiple authorization transactions
      Specified by:
      getExistingTransaction in interface TravelCommerceCheckoutService
      Returns:
    • createRefundPaymentTransaction

      @Deprecated public PaymentTransactionModel createRefundPaymentTransaction(AbstractOrderModel abstractOrder, BigDecimal amountToRefund, List<AbstractOrderEntryModel> entries)
      Deprecated.
      Deprecated since version 3.0.
      Description copied from interface: TravelCommerceCheckoutService
      Creates a payment transaction for refund
      Specified by:
      createRefundPaymentTransaction in interface TravelCommerceCheckoutService
      Parameters:
      abstractOrder - the abstract order
      amountToRefund - the amount to refund
      entries - the entries the transaction is linked to
      Returns:
    • linkEntriesToOldPaymentTransactions

      public boolean linkEntriesToOldPaymentTransactions(AccommodationOrderEntryGroupModel orderEntryGroup, List<AbstractOrderEntryModel> entries)
      Description copied from interface: TravelCommerceCheckoutService
      This method will replace all the old RoomRateModel entries belonging to specific group transaction entries , with new Entries.
      Specified by:
      linkEntriesToOldPaymentTransactions in interface TravelCommerceCheckoutService
      Returns:
    • createRefundPaymentTransactionEntries

      public Boolean createRefundPaymentTransactionEntries(AbstractOrderModel abstractOrder, List<AbstractOrderEntryModel> entries)
      Description copied from interface: TravelCommerceCheckoutService
      Create refund transaction entries within the correct payment transaction according with the amendment journey
      Specified by:
      createRefundPaymentTransactionEntries in interface TravelCommerceCheckoutService
      Returns:
    • getCustomerAccountService

      protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()
      Returns:
      the customerAccountService
    • setCustomerAccountService

      public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService)
      Parameters:
      customerAccountService - the customerAccountService to set
    • getBaseStoreService

      protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
      Overrides:
      getBaseStoreService in class de.hybris.platform.commerceservices.order.impl.DefaultCommerceCheckoutService
      Returns:
      the baseStoreService
    • setBaseStoreService

      public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
      Overrides:
      setBaseStoreService in class de.hybris.platform.commerceservices.order.impl.DefaultCommerceCheckoutService
      Parameters:
      baseStoreService - the baseStoreService to set
    • getUserService

      protected de.hybris.platform.servicelayer.user.UserService getUserService()
      Returns:
      the userService
    • setUserService

      public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
      Parameters:
      userService - the userService to set
    • getTimeService

      protected de.hybris.platform.servicelayer.time.TimeService getTimeService()
      Returns:
      the timeService
    • setTimeService

      public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
      Parameters:
      timeService - the timeService to set
    • getRefundPaymentTransactionStrategyMap

      protected Map<OrderEntryType,RefundPaymentTransactionStrategy> getRefundPaymentTransactionStrategyMap()
      Returns:
      the refundPaymentTransactionStrategyMap
    • setRefundPaymentTransactionStrategyMap

      public void setRefundPaymentTransactionStrategyMap(Map<OrderEntryType,RefundPaymentTransactionStrategy> refundPaymentTransactionStrategyMap)
      Parameters:
      refundPaymentTransactionStrategyMap - the refundPaymentTransactionStrategyMap to set
    • getSessionService

      protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
      Returns:
      the sessionService
    • setSessionService

      public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
      Parameters:
      sessionService - the sessionService to set