| Package | Description | 
|---|---|
| com.broadleafcommerce.cartoperation.domain | |
| com.broadleafcommerce.cartoperation.service.configuration | 
| Modifier and Type | Method and Description | 
|---|---|
AttributeChoice | 
ProductOption.getAttributeChoice()
 Configuration when the  
ProductOption.type of this option is one of:
 
 ProductOptionType.VARIANT_DISTINGUISHING - drives customer further specifying
 their choices into a specific Variant that contains a unique SKU code, pricing
 concerns, etc.
 ProductOptionType.CART_ITEM_ATTRIBUTE - Customer input will flow directly in the
 item attributes within their cart
 ProductOptionType.CART_ATTRIBUTE. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ProductOption.setAttributeChoice(AttributeChoice attributeChoice)
 Configuration when the  
ProductOption.type of this option is one of:
 
 ProductOptionType.VARIANT_DISTINGUISHING - drives customer further specifying
 their choices into a specific Variant that contains a unique SKU code, pricing
 concerns, etc.
 ProductOptionType.CART_ITEM_ATTRIBUTE - Customer input will flow directly in the
 item attributes within their cart
 ProductOptionType.CART_ATTRIBUTE. | 
| Modifier and Type | Method and Description | 
|---|---|
protected Optional<String> | 
DefaultAttributeChoiceConfigurationService.determineMatchedValue(@NonNull AttributeChoice attributeChoice,
                     String chosenValue)
If there are any  
getAllowedValues(), make sure that the chosen value
 matches. | 
protected void | 
DefaultAttributeChoiceConfigurationService.performRegexValidation(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem,
                      @NonNull AttributeChoice attributeChoice,
                      @NonNull String chosenValue)
Perform regex validation from  
getValidationRule() against the cart. | 
protected void | 
DefaultAttributeChoiceConfigurationService.performValidationStrategy(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem,
                         @NonNull AttributeChoice attributeChoice,
                         @NonNull String chosenValue)
Perform the  
getValidationStrategy() on the cartItem and the chosen
 value. | 
Copyright © 2021. All rights reserved.