Class CartStatusValidationHelper
java.lang.Object
com.broadleafcommerce.cartoperation.service.checkout.workflow.activity.CartStatusValidationHelper
This
CheckoutWorkflowActivity
is responsible for validating that the cart is able to be
checked out, based on its status
.-
Constructor Summary
ConstructorDescriptionCartStatusValidationHelper
(org.springframework.context.MessageSource messageSource) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.context.MessageSource
Retrieve the set of statuses which are considered valid to checkout.void
validateCartStatusForCheckout
(@NonNull CheckoutProcessDto processDto) Validates that the cart is in a status which is valid for checkout.
-
Constructor Details
-
CartStatusValidationHelper
public CartStatusValidationHelper(org.springframework.context.MessageSource messageSource)
-
-
Method Details
-
validateCartStatusForCheckout
Validates that the cart is in a status which is valid for checkout.- Parameters:
processDto
- TheCheckoutProcessDto
that we're attempting to checkout with.- Throws:
CheckoutWorkflowException
- if the cart status cannot be checked out
-
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()
-