Interface AcceleratorCheckoutFacade

All Superinterfaces:
CheckoutFacade
All Known Subinterfaces:
CheckoutFlowFacade, ChineseCheckoutFacade, DeliveryTimeSlotFacade, TaxInvoiceCheckoutFacade
All Known Implementing Classes:
B2BMultiStepCheckoutFlowFacade, ChinesePaymentMockCheckoutFacade, ChineseTaxInvoiceCheckoutFacade, DefaultAcceleratorCheckoutFacade, DefaultB2BAcceleratorCheckoutFacade, DefaultCheckoutFlowFacade, DefaultChineseCheckoutFacade, DefaultChineseDeliveryTimeSlotFacade, SessionOverrideCheckoutFlowFacade

public interface AcceleratorCheckoutFacade extends CheckoutFacade
Facade that extends CheckoutFacade with accelerator related functionality.
  • Method Details

    • getCheckoutFlowGroupForCheckout

      String getCheckoutFlowGroupForCheckout()
      Gets the checkout flow group
      Returns:
      the checkout flow group value
    • getConsolidatedPickupOptions

      List<PointOfServiceData> getConsolidatedPickupOptions()
      Gets the points of service for item pickup
      Returns:
      a List of PointOfServiceData
    • consolidateCheckoutCart

      List<CartModificationData> consolidateCheckoutCart(String pickupPointOfServiceName) throws CommerceCartModificationException
      Runs calculation again and updates cart
      Parameters:
      pickupPointOfServiceName - the point of service name
      Returns:
      a List of CartModificationData containing each unsuccessful cart modification
      Throws:
      CommerceCartModificationException - when the cart could not be modified
    • isExpressCheckoutAllowedForCart

      boolean isExpressCheckoutAllowedForCart()
      Checks if the current cart is allow to go through express checkout
      Returns:
      true if express checkout is allowed for cart
    • isExpressCheckoutEnabledForStore

      boolean isExpressCheckoutEnabledForStore()
      Checks if the current store is eligible for express checkout option
      Returns:
      true if checkout if express checkout of available for store
    • isTaxEstimationEnabledForCart

      boolean isTaxEstimationEnabledForCart()
      Checks if the current store is eligible tax estimation
      Returns:
      true if tax estimation enabled for store
    • isNewAddressEnabledForCart

      boolean isNewAddressEnabledForCart()
      Checks if creating a new delivery address is allowed for the current cart
      Returns:
      true if creating a new delivery address is allowed for the cart
    • isRemoveAddressEnabledForCart

      boolean isRemoveAddressEnabledForCart()
      Checks if removing an address from the address book is allowed during checkout for the current cart
      Returns:
      true if removing an address is allowed for the cart
    • performExpressCheckout

      Checks the required conditions and performs the express checkout
      Returns:
      the result of the operation
    • hasValidCart

      boolean hasValidCart()
      Checks if there is a valid cart for checkout
      Returns:
      if there is a valid cart
    • hasNoDeliveryAddress

      boolean hasNoDeliveryAddress()
      Checks if there is no delivery address
      Returns:
      true if there is no delivery address
    • hasNoDeliveryMode

      boolean hasNoDeliveryMode()
      Checks if there is no delivery mode
      Returns:
      true if there is no delivery mode
    • hasNoPaymentInfo

      boolean hasNoPaymentInfo()
      Checks if there is no payment info
      Returns:
      true if there is no payment info