Interface CartItemProductMapper
- All Known Implementing Classes:
DataDrivenCartItemProductMapper
,PropertyDrivenCartItemProductMapper
public interface CartItemProductMapper
Handles mapping specific
Product
and Variant
information into the
CartItem
in addition to the mapping performed in
CartItemCatalogInformationService
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
mapProductToCartItem
(com.broadleafcommerce.cart.client.domain.CartItem cartItem, Product product, Variant variant) Deprecated.void
mapProductToCartItem
(com.broadleafcommerce.cart.client.domain.CartItem cartItem, Product product, Variant variant, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Method Details
-
mapProductToCartItem
@Deprecated void mapProductToCartItem(com.broadleafcommerce.cart.client.domain.CartItem cartItem, Product product, @Nullable Variant variant) Deprecated.- Parameters:
cartItem
- the cart item to map information intoproduct
- the product to map information fromvariant
- the variant to map information from, if available
-
mapProductToCartItem
void mapProductToCartItem(com.broadleafcommerce.cart.client.domain.CartItem cartItem, Product product, @Nullable Variant variant, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Parameters:
cartItem
- the cart item to map information intoproduct
- the product to map information fromvariant
- the variant to map information from, if availablecontextInfo
- Context information around sandbox and multitenant state
-
mapProductToCartItem(CartItem, Product, Variant, ContextInfo)