public class CartStatusValidationHelper extends Object
CheckoutWorkflowActivity is responsible for validating that the cart is able to be
checked out, based on its status.| Constructor and Description |
|---|
CartStatusValidationHelper(org.springframework.context.MessageSource messageSource) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.context.MessageSource |
getMessageSource() |
protected Set<String> |
getValidCheckoutStatuses()
Retrieve the set of statuses which are considered valid to checkout.
|
void |
validateCartStatusForCheckout(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart)
Validates that the cart is in a status which is valid for checkout.
|
public CartStatusValidationHelper(org.springframework.context.MessageSource messageSource)
public void validateCartStatusForCheckout(@NonNull
@NonNull com.broadleafcommerce.cart.client.domain.Cart cart)
cart - The Cart that we're attempting to checkout with.CheckoutWorkflowException - if the cart status cannot be checked outprotected Set<String> getValidCheckoutStatuses()
protected org.springframework.context.MessageSource getMessageSource()
Copyright © 2021. All rights reserved.