public interface ItemChoiceConfigurationService
| Modifier and Type | Method and Description |
|---|---|
void |
populateItemChoice(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
ProductOption option,
List<com.broadleafcommerce.cart.client.domain.CartItem> potentialDependentItems)
Populates item choices in
CartItem.getDependentCartItems() and hydrates them with
pricing information from ItemChoice and SpecificItemChoice. |
void |
validateItemChoice(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
ProductOption option,
List<com.broadleafcommerce.cart.client.domain.CartItem> potentialDependentItems)
Perform validation against the provided
CartItem for the given ProductOption
of type ProductOptionType.isItemChoice(String). |
void populateItemChoice(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
ProductOption option,
List<com.broadleafcommerce.cart.client.domain.CartItem> potentialDependentItems)
CartItem.getDependentCartItems() and hydrates them with
pricing information from ItemChoice and SpecificItemChoice.cartItem - The CartItem on which to populate ItemChoices.option - The ProductOption (and its ProductOption.getItemChoice() for
the item to populate and hydratepotentialDependentItems - The list of dependent cart items to pick from
when populating ItemChoice.void validateItemChoice(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
ProductOption option,
List<com.broadleafcommerce.cart.client.domain.CartItem> potentialDependentItems)
CartItem for the given ProductOption
of type ProductOptionType.isItemChoice(String). This will also hydrate
CartItem with pricing information from ItemChoice and
SpecificItemChoice.cartItem - The CartItem to perform item choice validation
against.option - The ProductOption (and it's ProductOption.getItemChoice() we
are using to validate the cart against.potentialDependentItems - The list of dependent cart items to pick from
when validating ItemChoice.Copyright © 2021. All rights reserved.