java.lang.Object
com.broadleafcommerce.cartoperation.service.checkout.workflow.activity.CartStatusValidationHelper

public class CartStatusValidationHelper extends Object
This CheckoutWorkflowActivity is responsible for validating that the cart is able to be checked out, based on its status.
  • Constructor Details

    • CartStatusValidationHelper

      public CartStatusValidationHelper(org.springframework.context.MessageSource messageSource)
  • Method Details

    • validateCartStatusForCheckout

      public void validateCartStatusForCheckout(@NonNull @NonNull CheckoutProcessDto processDto)
      Validates that the cart is in a status which is valid for checkout.
      Parameters:
      processDto - The CheckoutProcessDto that we're attempting to checkout with.
      Throws:
      CheckoutWorkflowException - if the cart status cannot be checked out
    • getValidCheckoutStatuses

      protected Set<String> getValidCheckoutStatuses()
      Retrieve the set of statuses which are considered valid to checkout.
      Returns:
      The set of statuses which are considered valid to checkout.
    • getMessageSource

      protected org.springframework.context.MessageSource getMessageSource()