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
ConstructorsConstructorDescriptionCartStatusValidationHelper(org.springframework.context.MessageSource messageSource) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.context.MessageSourceRetrieve the set of statuses which are considered valid to checkout.voidvalidateCartStatusForCheckout(@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- TheCheckoutProcessDtothat 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()
-