Package | Description |
---|---|
com.broadleafcommerce.cartoperation.domain | |
com.broadleafcommerce.cartoperation.service.configuration |
Modifier and Type | Method and Description |
---|---|
List<IncludedProduct> |
Product.getIncludedProducts()
Additional products that are always included with the product, no matter what.
|
Modifier and Type | Method and Description |
---|---|
void |
Product.setIncludedProducts(List<IncludedProduct> includedProducts)
Additional products that are always included with the product, no matter what.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultIncludedProductConfigurationService.addItemConfigError(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem,
@NonNull IncludedProduct includedProduct,
@NonNull String errorCode,
@NonNull String errorMessage) |
protected com.broadleafcommerce.cart.client.domain.CartItem |
DefaultIncludedProductConfigurationService.createDependentItem(@NonNull IncludedProduct includedProduct) |
protected Optional<com.broadleafcommerce.cart.client.domain.CartItem> |
DefaultIncludedProductConfigurationService.findDependentMatchingIncludedProduct(@NonNull List<com.broadleafcommerce.cart.client.domain.CartItem> dependentCartItems,
@NonNull IncludedProduct includedProduct) |
protected Optional<com.broadleafcommerce.cart.client.domain.CartItem> |
DefaultIncludedProductConfigurationService.findMatchingProduct(@NonNull List<com.broadleafcommerce.cart.client.domain.CartItem> dependentCartItems,
@NonNull IncludedProduct includedProduct) |
protected Optional<com.broadleafcommerce.cart.client.domain.CartItem> |
DefaultIncludedProductConfigurationService.findMatchingVariant(@NonNull List<com.broadleafcommerce.cart.client.domain.CartItem> dependentCartItems,
@NonNull IncludedProduct includedProduct) |
protected javax.money.MonetaryAmount |
DefaultIncludedProductConfigurationService.getIncludedItemUnitPrice(@NonNull IncludedProduct includedProduct)
Returns the "unitPrice" of the
IncludedProduct to use for a CartItem . |
protected String |
DefaultIncludedProductConfigurationService.getIncludedProductName(@NonNull IncludedProduct includedProduct)
Returns the "name" of the
IncludedProduct to use for a CartItem . |
void |
IncludedProductConfigurationService.populateIncludedProduct(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
IncludedProduct includedProduct,
List<com.broadleafcommerce.cart.client.domain.CartItem> potentialDependentItems,
boolean isAdd)
Populate the
IncludedProduct as a dependent item in the provided CartItem . |
void |
DefaultIncludedProductConfigurationService.populateIncludedProduct(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem,
@NonNull IncludedProduct includedProduct,
@NonNull List<com.broadleafcommerce.cart.client.domain.CartItem> potentialDependentItems,
boolean isAdd) |
void |
IncludedProductConfigurationService.validateIncludedProduct(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
IncludedProduct includedProduct,
List<com.broadleafcommerce.cart.client.domain.CartItem> potentialDependentItems)
Perform validation against the provided
CartItem for the given
IncludedProduct . |
void |
DefaultIncludedProductConfigurationService.validateIncludedProduct(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem,
@NonNull IncludedProduct includedProduct,
@NonNull List<com.broadleafcommerce.cart.client.domain.CartItem> potentialDependentItems) |
protected void |
DefaultIncludedProductConfigurationService.validateQuantity(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem,
com.broadleafcommerce.cart.client.domain.CartItem matchingCartItem,
@NonNull IncludedProduct includedProduct) |
Copyright © 2021. All rights reserved.