Class DefaultAcceleratorCheckoutFacade
java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade
de.hybris.platform.acceleratorfacades.order.impl.DefaultAcceleratorCheckoutFacade
- All Implemented Interfaces:
AcceleratorCheckoutFacade,CheckoutFacade
- Direct Known Subclasses:
ChineseTaxInvoiceCheckoutFacade,DefaultCheckoutFlowFacade,DefaultChineseCheckoutFacade,DefaultChineseDeliveryTimeSlotFacade
public class DefaultAcceleratorCheckoutFacade
extends DefaultCheckoutFacade
implements AcceleratorCheckoutFacade
Default implementation of
AcceleratorCheckoutFacade-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade
AcceleratorCheckoutFacade.ExpressCheckoutResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconsolidateCheckoutCart(String pickupPointOfServiceName) Runs calculation again and updates cartprotected AcceleratorCheckoutServiceGets the checkout flow groupGets the points of service for item pickupprotected PointOfServiceServiceprotected UiExperienceServicebooleanChecks if there is no delivery addressbooleanChecks if there is no delivery modebooleanChecks if there is no payment infobooleanChecks if there is a valid cart for checkoutbooleanChecks if the current cart is allow to go through express checkoutprotected booleanprotected booleanbooleanChecks if the current store is eligible for express checkout optionbooleanChecks if creating a new delivery address is allowed for the current cartbooleanChecks if removing an address from the address book is allowed during checkout for the current cartbooleanChecks if the current store is eligible tax estimationChecks the required conditions and performs the express checkoutprotected OrderModelplaceOrder(CartModel cartModel) voidsetAcceleratorCheckoutService(AcceleratorCheckoutService acceleratorCheckoutService) voidsetCartModificationConverter(Converter<CommerceCartModification, CartModificationData> cartModificationConverter) voidsetPointOfServiceDistanceConverter(Converter<PointOfServiceDistanceData, PointOfServiceData> pointOfServiceDistanceConverter) voidsetPointOfServiceService(PointOfServiceService pointOfServiceService) voidsetUiExperienceService(UiExperienceService uiExperienceService) Methods inherited from class de.hybris.platform.commercefacades.order.impl.DefaultCheckoutFacade
afterPlaceOrder, authorizePayment, beforePlaceOrder, checkIfCurrentUserIsTheCartUser, containsTaxValues, convert, createCommerceCheckoutParameter, createDeliveryAddressModel, createPaymentSubscription, getAddressConverter, getAddressDataForId, getAddressReversePopulator, getBaseStoreService, getBillingCountries, getCardTypeConverter, getCart, getCartFacade, getCartService, getCheckoutCart, getCheckoutCustomerStrategy, getCommerceCardTypeService, getCommerceCheckoutService, 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, setCommerceCheckoutService, 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.commercefacades.order.CheckoutFacade
authorizePayment, containsTaxValues, createPaymentSubscription, 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
-
DefaultAcceleratorCheckoutFacade
public DefaultAcceleratorCheckoutFacade()
-
-
Method Details
-
placeOrder
- Overrides:
placeOrderin classDefaultCheckoutFacade- Throws:
InvalidCartException
-
getConsolidatedPickupOptions
Description copied from interface:AcceleratorCheckoutFacadeGets the points of service for item pickup- Specified by:
getConsolidatedPickupOptionsin interfaceAcceleratorCheckoutFacade- Returns:
- a
ListofPointOfServiceData
-
consolidateCheckoutCart
public List<CartModificationData> consolidateCheckoutCart(String pickupPointOfServiceName) throws CommerceCartModificationException Description copied from interface:AcceleratorCheckoutFacadeRuns calculation again and updates cart- Specified by:
consolidateCheckoutCartin interfaceAcceleratorCheckoutFacade- Parameters:
pickupPointOfServiceName- the point of service name- Returns:
- a
ListofCartModificationDatacontaining each unsuccessful cart modification - Throws:
CommerceCartModificationException- when the cart could not be modified
-
isExpressCheckoutAllowedForCart
public boolean isExpressCheckoutAllowedForCart()Description copied from interface:AcceleratorCheckoutFacadeChecks if the current cart is allow to go through express checkout- Specified by:
isExpressCheckoutAllowedForCartin interfaceAcceleratorCheckoutFacade- Returns:
- true if express checkout is allowed for cart
-
isExpressCheckoutEnabledForStore
public boolean isExpressCheckoutEnabledForStore()Description copied from interface:AcceleratorCheckoutFacadeChecks if the current store is eligible for express checkout option- Specified by:
isExpressCheckoutEnabledForStorein interfaceAcceleratorCheckoutFacade- Returns:
- true if checkout if express checkout of available for store
-
getCheckoutFlowGroupForCheckout
Description copied from interface:AcceleratorCheckoutFacadeGets the checkout flow group- Specified by:
getCheckoutFlowGroupForCheckoutin interfaceAcceleratorCheckoutFacade- Returns:
- the checkout flow group value
-
performExpressCheckout
Description copied from interface:AcceleratorCheckoutFacadeChecks the required conditions and performs the express checkout- Specified by:
performExpressCheckoutin interfaceAcceleratorCheckoutFacade- Returns:
- the result of the operation
-
getExpressCheckoutDeliveryResult
-
hasValidCart
public boolean hasValidCart()Description copied from interface:AcceleratorCheckoutFacadeChecks if there is a valid cart for checkout- Specified by:
hasValidCartin interfaceAcceleratorCheckoutFacade- Returns:
- if there is a valid cart
-
hasNoDeliveryAddress
public boolean hasNoDeliveryAddress()Description copied from interface:AcceleratorCheckoutFacadeChecks if there is no delivery address- Specified by:
hasNoDeliveryAddressin interfaceAcceleratorCheckoutFacade- Returns:
- true if there is no delivery address
-
hasNoDeliveryMode
public boolean hasNoDeliveryMode()Description copied from interface:AcceleratorCheckoutFacadeChecks if there is no delivery mode- Specified by:
hasNoDeliveryModein interfaceAcceleratorCheckoutFacade- Returns:
- true if there is no delivery mode
-
hasNoPaymentInfo
public boolean hasNoPaymentInfo()Description copied from interface:AcceleratorCheckoutFacadeChecks if there is no payment info- Specified by:
hasNoPaymentInfoin interfaceAcceleratorCheckoutFacade- Returns:
- true if there is no payment info
-
isExpressCheckoutAllowedForShippingCart
protected boolean isExpressCheckoutAllowedForShippingCart() -
isExpressCheckoutAllowedPickupOnlyCart
protected boolean isExpressCheckoutAllowedPickupOnlyCart() -
isTaxEstimationEnabledForCart
public boolean isTaxEstimationEnabledForCart()Description copied from interface:AcceleratorCheckoutFacadeChecks if the current store is eligible tax estimation- Specified by:
isTaxEstimationEnabledForCartin interfaceAcceleratorCheckoutFacade- Returns:
- true if tax estimation enabled for store
-
isNewAddressEnabledForCart
public boolean isNewAddressEnabledForCart()Description copied from interface:AcceleratorCheckoutFacadeChecks if creating a new delivery address is allowed for the current cart- Specified by:
isNewAddressEnabledForCartin interfaceAcceleratorCheckoutFacade- Returns:
- true if creating a new delivery address is allowed for the cart
-
isRemoveAddressEnabledForCart
public boolean isRemoveAddressEnabledForCart()Description copied from interface:AcceleratorCheckoutFacadeChecks if removing an address from the address book is allowed during checkout for the current cart- Specified by:
isRemoveAddressEnabledForCartin interfaceAcceleratorCheckoutFacade- Returns:
- true if removing an address is allowed for the cart
-
getUiExperienceService
-
setUiExperienceService
-
getAcceleratorCheckoutService
-
setAcceleratorCheckoutService
-
getPointOfServiceService
-
setPointOfServiceService
-
getPointOfServiceDistanceConverter
protected Converter<PointOfServiceDistanceData,PointOfServiceData> getPointOfServiceDistanceConverter() -
setPointOfServiceDistanceConverter
public void setPointOfServiceDistanceConverter(Converter<PointOfServiceDistanceData, PointOfServiceData> pointOfServiceDistanceConverter) -
getCartModificationConverter
-
setCartModificationConverter
public void setCartModificationConverter(Converter<CommerceCartModification, CartModificationData> cartModificationConverter)
-