Class DefaultTravelCheckoutFacade

java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade
de.hybris.platform.acceleratorfacades.order.impl.DefaultAcceleratorCheckoutFacade
de.hybris.platform.travelfacades.order.impl.DefaultTravelCheckoutFacade
All Implemented Interfaces:
de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade, de.hybris.platform.commercefacades.order.CheckoutFacade, TravelCheckoutFacade
Direct Known Subclasses:
DefaultNDCCheckoutFacade

public class DefaultTravelCheckoutFacade extends de.hybris.platform.acceleratorfacades.order.impl.DefaultAcceleratorCheckoutFacade implements TravelCheckoutFacade
Facade to handle travel specific methods relative to checkout
  • Nested Class Summary

    Nested classes/interfaces inherited from interface de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade

    de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade.ExpressCheckoutResult
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    authorizePayment(String securityCode)
     
     
     
    Gets b2b checkout facade.
    protected de.hybris.platform.commerceservices.order.CommerceCheckoutService
     
    protected de.hybris.platform.servicelayer.config.ConfigurationService
     
     
    protected de.hybris.platform.servicelayer.session.SessionService
     
    Gets travel customer facade.
    placeOrder(String cartId, String paymentOptionId, Boolean additionalSecurity, String securityCode)
    Place an order: 1) Checks if the paymentOptionId (if provided) is contained in the list of the available payment options for the specific cartId and save it into the session before placing the order.
    protected void
    Save the associated transactions of a payment option in session.
    void
    Sets b2b checkout facade.
    void
    setCommerceCheckoutService(de.hybris.platform.commerceservices.order.CommerceCheckoutService commerceCheckoutService)
     
    void
    setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
     
    protected void
     
    void
    setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
     
    void
    Sets travel customer facade.

    Methods inherited from class de.hybris.platform.acceleratorfacades.order.impl.DefaultAcceleratorCheckoutFacade

    consolidateCheckoutCart, getAcceleratorCheckoutService, getCartModificationConverter, getCheckoutFlowGroupForCheckout, getConsolidatedPickupOptions, getExpressCheckoutDeliveryResult, getPointOfServiceDistanceConverter, getPointOfServiceService, getUiExperienceService, hasNoDeliveryAddress, hasNoDeliveryMode, hasNoPaymentInfo, hasValidCart, isExpressCheckoutAllowedForCart, isExpressCheckoutAllowedForShippingCart, isExpressCheckoutAllowedPickupOnlyCart, isExpressCheckoutEnabledForStore, isNewAddressEnabledForCart, isRemoveAddressEnabledForCart, isTaxEstimationEnabledForCart, performExpressCheckout, placeOrder, setAcceleratorCheckoutService, setCartModificationConverter, setPointOfServiceDistanceConverter, setPointOfServiceService, setUiExperienceService

    Methods inherited from class de.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade

    afterPlaceOrder, beforePlaceOrder, checkIfCurrentUserIsTheCartUser, containsTaxValues, convert, createCommerceCheckoutParameter, createDeliveryAddressModel, getAddressConverter, getAddressDataForId, getAddressReversePopulator, getBaseStoreService, getBillingCountries, getCardTypeConverter, getCart, getCartFacade, getCartService, getCheckoutCart, getCheckoutCustomerStrategy, getCommerceCardTypeService, getCommonI18NService, getCountries, getCountryConverter, getCreditCardPaymentInfoConverter, getCurrentUserForCheckout, getCustomerAccountService, getDeliveryAddress, getDeliveryAddressForCode, getDeliveryAddressModelForCode, getDeliveryCountries, getDeliveryMode, getDeliveryModeConverter, getDeliveryService, getEnumerationService, getModelService, getOrderConverter, getPaymentDetails, getPaymentProvider, getPriceDataFactory, getSupportedCardTypes, getSupportedDeliveryAddresses, getSupportedDeliveryModes, getUserService, getZoneDeliveryModeConverter, hasCheckoutCart, hasItemsMatchingPredicate, hasPickUpItems, hasShippingItems, isSupportedDeliveryMode, placeOrder, prepareCartForCheckout, removeDeliveryAddress, removeDeliveryMode, setAddressConverter, setAddressReversePopulator, setBaseStoreService, setCardTypeConverter, setCartFacade, setCartService, setCheapestDeliveryModeForCheckout, setCheckoutCustomerStrategy, setCommerceCardTypeService, setCommonI18NService, setCountryConverter, setCreditCardPaymentInfoConverter, setCustomerAccountService, setDefaultDeliveryAddressForCheckout, setDefaultPaymentInfoForCheckout, setDeliveryAddress, setDeliveryAddressIfAvailable, setDeliveryMode, setDeliveryModeConverter, setDeliveryModeIfAvailable, setDeliveryService, setEnumerationService, setModelService, setOrderConverter, setPaymentDetails, setPaymentInfoIfAvailable, setPriceDataFactory, setUserService, setZoneDeliveryModeConverter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade

    consolidateCheckoutCart, getCheckoutFlowGroupForCheckout, getConsolidatedPickupOptions, hasNoDeliveryAddress, hasNoDeliveryMode, hasNoPaymentInfo, hasValidCart, isExpressCheckoutAllowedForCart, isExpressCheckoutEnabledForStore, isNewAddressEnabledForCart, isRemoveAddressEnabledForCart, isTaxEstimationEnabledForCart, performExpressCheckout

    Methods inherited from interface de.hybris.platform.commercefacades.order.CheckoutFacade

    containsTaxValues, getAddressDataForId, getBillingCountries, getCheckoutCart, getCountries, getDeliveryAddressForCode, getDeliveryCountries, getSupportedCardTypes, getSupportedDeliveryAddresses, getSupportedDeliveryModes, hasCheckoutCart, hasPickUpItems, hasShippingItems, placeOrder, prepareCartForCheckout, removeDeliveryAddress, removeDeliveryMode, setCheapestDeliveryModeForCheckout, setDefaultDeliveryAddressForCheckout, setDefaultPaymentInfoForCheckout, setDeliveryAddress, setDeliveryAddressIfAvailable, setDeliveryMode, setDeliveryModeIfAvailable, setPaymentDetails, setPaymentInfoIfAvailable
  • Constructor Details

    • DefaultTravelCheckoutFacade

      public DefaultTravelCheckoutFacade()
  • Method Details

    • authorizePayment

      public boolean authorizePayment(String securityCode)
      Specified by:
      authorizePayment in interface de.hybris.platform.commercefacades.order.CheckoutFacade
      Overrides:
      authorizePayment in class de.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade
    • getExistingTransaction

      protected PaymentTransactionModel getExistingTransaction(PaymentTransactionData transactionData, CommerceCheckoutParameter parameter)
    • setEntriesAgainstTransaction

      protected void setEntriesAgainstTransaction(PaymentTransactionEntryModel paymentTransactionEntryModel, PaymentTransactionData transactionData)
    • createDefaultPaymentTransactionData

      protected PaymentTransactionData createDefaultPaymentTransactionData(CartModel cartModel)
    • placeOrder

      public String placeOrder(String cartId, String paymentOptionId, Boolean additionalSecurity, String securityCode) throws de.hybris.platform.order.InvalidCartException, InvalidSessionCartException, PlaceOrderException, InternalErrorException, InvalidPaymentOptionException
      Place an order: 1) Checks if the paymentOptionId (if provided) is contained in the list of the available payment options for the specific cartId and save it into the session before placing the order. 2) authorize the payment 3) Set the AdditionalSecurity on the cart. 4) Place an order after validating the cart.
      Specified by:
      placeOrder in interface TravelCheckoutFacade
      Parameters:
      cartId - the cartId
      paymentOptionId - the paymentOptionId
      additionalSecurity - the additionalSecurity
      securityCode - the securityCode
      Returns:
      the order code
      Throws:
      de.hybris.platform.order.InvalidCartException
      InvalidSessionCartException
      PlaceOrderException
      InternalErrorException
      InvalidPaymentOptionException
    • createPaymentSubscription

      public CCPaymentInfoData createPaymentSubscription(CCPaymentInfoData paymentInfoData)
      Specified by:
      createPaymentSubscription in interface de.hybris.platform.commercefacades.order.CheckoutFacade
      Overrides:
      createPaymentSubscription in class de.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade
    • savePaymentOptionsInSession

      protected void savePaymentOptionsInSession(String paymentOptionId) throws PlaceOrderException, InvalidPaymentOptionException
      Save the associated transactions of a payment option in session. If no paymentOptionId is provided and there are available payment options for the cart, get the first one as default and save it into the session. Checks if the paymentOptionId matches one of the available payment options.
      Parameters:
      paymentOptionId - the payment option id
      Throws:
      PlaceOrderException - the place order exception
      InvalidPaymentOptionException
    • 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
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Returns:
      the configurationService
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Parameters:
      configurationService - the configurationService to set
    • getCommerceCheckoutService

      protected de.hybris.platform.commerceservices.order.CommerceCheckoutService getCommerceCheckoutService()
      Overrides:
      getCommerceCheckoutService in class de.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade
      Returns:
      the commerceCheckoutService
    • setCommerceCheckoutService

      public void setCommerceCheckoutService(de.hybris.platform.commerceservices.order.CommerceCheckoutService commerceCheckoutService)
      Overrides:
      setCommerceCheckoutService in class de.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade
      Parameters:
      commerceCheckoutService - the commerceCheckoutService to set
    • getTravelCustomerFacade

      protected TravelCustomerFacade getTravelCustomerFacade()
      Gets travel customer facade.
      Returns:
      the travel customer facade
    • setTravelCustomerFacade

      public void setTravelCustomerFacade(TravelCustomerFacade travelCustomerFacade)
      Sets travel customer facade.
      Parameters:
      travelCustomerFacade - the travel customer facade
    • getB2bCheckoutFacade

      protected TravelB2BCheckoutFacade getB2bCheckoutFacade()
      Gets b2b checkout facade.
      Returns:
      the b2b checkout facade
    • setB2bCheckoutFacade

      public void setB2bCheckoutFacade(TravelB2BCheckoutFacade b2bCheckoutFacade)
      Sets b2b checkout facade.
      Parameters:
      b2bCheckoutFacade - the b2b checkout facade