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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthorizePayment(String securityCode) protected PaymentTransactionDatacreateDefaultPaymentTransactionData(CartModel cartModel) createPaymentSubscription(CCPaymentInfoData paymentInfoData) protected TravelB2BCheckoutFacadeGets b2b checkout facade.protected de.hybris.platform.commerceservices.order.CommerceCheckoutServiceprotected de.hybris.platform.servicelayer.config.ConfigurationServiceprotected PaymentTransactionModelgetExistingTransaction(PaymentTransactionData transactionData, CommerceCheckoutParameter parameter) protected de.hybris.platform.servicelayer.session.SessionServiceprotected TravelCustomerFacadeGets 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 voidsavePaymentOptionsInSession(String paymentOptionId) Save the associated transactions of a payment option in session.voidsetB2bCheckoutFacade(TravelB2BCheckoutFacade b2bCheckoutFacade) Sets b2b checkout facade.voidsetCommerceCheckoutService(de.hybris.platform.commerceservices.order.CommerceCheckoutService commerceCheckoutService) voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) protected voidsetEntriesAgainstTransaction(PaymentTransactionEntryModel paymentTransactionEntryModel, PaymentTransactionData transactionData) voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) voidsetTravelCustomerFacade(TravelCustomerFacade travelCustomerFacade) 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, setUiExperienceServiceMethods 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, setZoneDeliveryModeConverterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade
consolidateCheckoutCart, getCheckoutFlowGroupForCheckout, getConsolidatedPickupOptions, hasNoDeliveryAddress, hasNoDeliveryMode, hasNoPaymentInfo, hasValidCart, isExpressCheckoutAllowedForCart, isExpressCheckoutEnabledForStore, isNewAddressEnabledForCart, isRemoveAddressEnabledForCart, isTaxEstimationEnabledForCart, performExpressCheckoutMethods 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
- Specified by:
authorizePaymentin interfacede.hybris.platform.commercefacades.order.CheckoutFacade- Overrides:
authorizePaymentin classde.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade
-
getExistingTransaction
protected PaymentTransactionModel getExistingTransaction(PaymentTransactionData transactionData, CommerceCheckoutParameter parameter) -
setEntriesAgainstTransaction
protected void setEntriesAgainstTransaction(PaymentTransactionEntryModel paymentTransactionEntryModel, PaymentTransactionData transactionData) -
createDefaultPaymentTransactionData
-
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:
placeOrderin interfaceTravelCheckoutFacade- Parameters:
cartId- the cartIdpaymentOptionId- the paymentOptionIdadditionalSecurity- the additionalSecuritysecurityCode- the securityCode- Returns:
- the order code
- Throws:
de.hybris.platform.order.InvalidCartExceptionInvalidSessionCartExceptionPlaceOrderExceptionInternalErrorExceptionInvalidPaymentOptionException
-
createPaymentSubscription
- Specified by:
createPaymentSubscriptionin interfacede.hybris.platform.commercefacades.order.CheckoutFacade- Overrides:
createPaymentSubscriptionin classde.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 exceptionInvalidPaymentOptionException
-
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:
getCommerceCheckoutServicein classde.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade- Returns:
- the commerceCheckoutService
-
setCommerceCheckoutService
public void setCommerceCheckoutService(de.hybris.platform.commerceservices.order.CommerceCheckoutService commerceCheckoutService) - Overrides:
setCommerceCheckoutServicein classde.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade- Parameters:
commerceCheckoutService- the commerceCheckoutService to set
-
getTravelCustomerFacade
Gets travel customer facade.- Returns:
- the travel customer facade
-
setTravelCustomerFacade
Sets travel customer facade.- Parameters:
travelCustomerFacade- the travel customer facade
-
getB2bCheckoutFacade
Gets b2b checkout facade.- Returns:
- the b2b checkout facade
-
setB2bCheckoutFacade
Sets b2b checkout facade.- Parameters:
b2bCheckoutFacade- the b2b checkout facade
-