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
,DefaultSapDigitalPaymentAcceleratorCheckoutFacade
public class DefaultAcceleratorCheckoutFacade extends DefaultCheckoutFacade implements AcceleratorCheckoutFacade
Default implementation ofAcceleratorCheckoutFacade
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.acceleratorfacades.order.AcceleratorCheckoutFacade
AcceleratorCheckoutFacade.ExpressCheckoutResult
-
-
Constructor Summary
Constructors Constructor Description DefaultAcceleratorCheckoutFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CartModificationData>
consolidateCheckoutCart(java.lang.String pickupPointOfServiceName)
Runs calculation again and updates cartprotected AcceleratorCheckoutService
getAcceleratorCheckoutService()
protected Converter<CommerceCartModification,CartModificationData>
getCartModificationConverter()
java.lang.String
getCheckoutFlowGroupForCheckout()
Gets the checkout flow groupjava.util.List<PointOfServiceData>
getConsolidatedPickupOptions()
Gets the points of service for item pickupprotected AcceleratorCheckoutFacade.ExpressCheckoutResult
getExpressCheckoutDeliveryResult()
protected Converter<PointOfServiceDistanceData,PointOfServiceData>
getPointOfServiceDistanceConverter()
protected PointOfServiceService
getPointOfServiceService()
protected UiExperienceService
getUiExperienceService()
boolean
hasNoDeliveryAddress()
Checks if there is no delivery addressboolean
hasNoDeliveryMode()
Checks if there is no delivery modeboolean
hasNoPaymentInfo()
Checks if there is no payment infoboolean
hasValidCart()
Checks if there is a valid cart for checkoutboolean
isExpressCheckoutAllowedForCart()
Checks if the current cart is allow to go through express checkoutprotected boolean
isExpressCheckoutAllowedForShippingCart()
protected boolean
isExpressCheckoutAllowedPickupOnlyCart()
boolean
isExpressCheckoutEnabledForStore()
Checks if the current store is eligible for express checkout optionboolean
isNewAddressEnabledForCart()
Checks if creating a new delivery address is allowed for the current cartboolean
isRemoveAddressEnabledForCart()
Checks if removing an address from the address book is allowed during checkout for the current cartboolean
isTaxEstimationEnabledForCart()
Checks if the current store is eligible tax estimationAcceleratorCheckoutFacade.ExpressCheckoutResult
performExpressCheckout()
Checks the required conditions and performs the express checkoutprotected OrderModel
placeOrder(CartModel cartModel)
void
setAcceleratorCheckoutService(AcceleratorCheckoutService acceleratorCheckoutService)
void
setCartModificationConverter(Converter<CommerceCartModification,CartModificationData> cartModificationConverter)
void
setPointOfServiceDistanceConverter(Converter<PointOfServiceDistanceData,PointOfServiceData> pointOfServiceDistanceConverter)
void
setPointOfServiceService(PointOfServiceService pointOfServiceService)
void
setUiExperienceService(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, 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.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
-
-
-
-
Method Detail
-
placeOrder
protected OrderModel placeOrder(CartModel cartModel) throws InvalidCartException
- Overrides:
placeOrder
in classDefaultCheckoutFacade
- Throws:
InvalidCartException
-
getConsolidatedPickupOptions
public java.util.List<PointOfServiceData> getConsolidatedPickupOptions()
Description copied from interface:AcceleratorCheckoutFacade
Gets the points of service for item pickup- Specified by:
getConsolidatedPickupOptions
in interfaceAcceleratorCheckoutFacade
- Returns:
- a
List
ofPointOfServiceData
-
consolidateCheckoutCart
public java.util.List<CartModificationData> consolidateCheckoutCart(java.lang.String pickupPointOfServiceName) throws CommerceCartModificationException
Description copied from interface:AcceleratorCheckoutFacade
Runs calculation again and updates cart- Specified by:
consolidateCheckoutCart
in interfaceAcceleratorCheckoutFacade
- Parameters:
pickupPointOfServiceName
- the point of service name- Returns:
- a
List
ofCartModificationData
containing each unsuccessful cart modification - Throws:
CommerceCartModificationException
- when the cart could not be modified
-
isExpressCheckoutAllowedForCart
public boolean isExpressCheckoutAllowedForCart()
Description copied from interface:AcceleratorCheckoutFacade
Checks if the current cart is allow to go through express checkout- Specified by:
isExpressCheckoutAllowedForCart
in interfaceAcceleratorCheckoutFacade
- Returns:
- true if express checkout is allowed for cart
-
isExpressCheckoutEnabledForStore
public boolean isExpressCheckoutEnabledForStore()
Description copied from interface:AcceleratorCheckoutFacade
Checks if the current store is eligible for express checkout option- Specified by:
isExpressCheckoutEnabledForStore
in interfaceAcceleratorCheckoutFacade
- Returns:
- true if checkout if express checkout of available for store
-
getCheckoutFlowGroupForCheckout
public java.lang.String getCheckoutFlowGroupForCheckout()
Description copied from interface:AcceleratorCheckoutFacade
Gets the checkout flow group- Specified by:
getCheckoutFlowGroupForCheckout
in interfaceAcceleratorCheckoutFacade
- Returns:
- the checkout flow group value
-
performExpressCheckout
public AcceleratorCheckoutFacade.ExpressCheckoutResult performExpressCheckout()
Description copied from interface:AcceleratorCheckoutFacade
Checks the required conditions and performs the express checkout- Specified by:
performExpressCheckout
in interfaceAcceleratorCheckoutFacade
- Returns:
- the result of the operation
-
getExpressCheckoutDeliveryResult
protected AcceleratorCheckoutFacade.ExpressCheckoutResult getExpressCheckoutDeliveryResult()
-
hasValidCart
public boolean hasValidCart()
Description copied from interface:AcceleratorCheckoutFacade
Checks if there is a valid cart for checkout- Specified by:
hasValidCart
in interfaceAcceleratorCheckoutFacade
- Returns:
- if there is a valid cart
-
hasNoDeliveryAddress
public boolean hasNoDeliveryAddress()
Description copied from interface:AcceleratorCheckoutFacade
Checks if there is no delivery address- Specified by:
hasNoDeliveryAddress
in interfaceAcceleratorCheckoutFacade
- Returns:
- true if there is no delivery address
-
hasNoDeliveryMode
public boolean hasNoDeliveryMode()
Description copied from interface:AcceleratorCheckoutFacade
Checks if there is no delivery mode- Specified by:
hasNoDeliveryMode
in interfaceAcceleratorCheckoutFacade
- Returns:
- true if there is no delivery mode
-
hasNoPaymentInfo
public boolean hasNoPaymentInfo()
Description copied from interface:AcceleratorCheckoutFacade
Checks if there is no payment info- Specified by:
hasNoPaymentInfo
in 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:AcceleratorCheckoutFacade
Checks if the current store is eligible tax estimation- Specified by:
isTaxEstimationEnabledForCart
in interfaceAcceleratorCheckoutFacade
- Returns:
- true if tax estimation enabled for store
-
isNewAddressEnabledForCart
public boolean isNewAddressEnabledForCart()
Description copied from interface:AcceleratorCheckoutFacade
Checks if creating a new delivery address is allowed for the current cart- Specified by:
isNewAddressEnabledForCart
in interfaceAcceleratorCheckoutFacade
- Returns:
- true if creating a new delivery address is allowed for the cart
-
isRemoveAddressEnabledForCart
public boolean isRemoveAddressEnabledForCart()
Description copied from interface:AcceleratorCheckoutFacade
Checks if removing an address from the address book is allowed during checkout for the current cart- Specified by:
isRemoveAddressEnabledForCart
in interfaceAcceleratorCheckoutFacade
- Returns:
- true if removing an address is allowed for the cart
-
getUiExperienceService
protected UiExperienceService getUiExperienceService()
-
setUiExperienceService
public void setUiExperienceService(UiExperienceService uiExperienceService)
-
getAcceleratorCheckoutService
protected AcceleratorCheckoutService getAcceleratorCheckoutService()
-
setAcceleratorCheckoutService
public void setAcceleratorCheckoutService(AcceleratorCheckoutService acceleratorCheckoutService)
-
getPointOfServiceService
protected PointOfServiceService getPointOfServiceService()
-
setPointOfServiceService
public void setPointOfServiceService(PointOfServiceService pointOfServiceService)
-
getPointOfServiceDistanceConverter
protected Converter<PointOfServiceDistanceData,PointOfServiceData> getPointOfServiceDistanceConverter()
-
setPointOfServiceDistanceConverter
public void setPointOfServiceDistanceConverter(Converter<PointOfServiceDistanceData,PointOfServiceData> pointOfServiceDistanceConverter)
-
getCartModificationConverter
protected Converter<CommerceCartModification,CartModificationData> getCartModificationConverter()
-
setCartModificationConverter
public void setCartModificationConverter(Converter<CommerceCartModification,CartModificationData> cartModificationConverter)
-
-