Interface ItemListAddToCartService
- All Known Implementing Classes:
DefaultItemListAddToCartService
public interface ItemListAddToCartService
Service for adding
ItemList(s)
to the cart- Author:
- Chris Kittrell (ckittrell)
-
Method Summary
Modifier and TypeMethodDescriptionaddItemListsToCart
(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, Set<String> itemListIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Adds allItemListItems
to the cart from theItemLists
identified by the provided itemListIdsaddItemListToCart
(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, String itemListId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Adds allItemListItems
to the cart from theItemList
identified by the provided itemListId
-
Method Details
-
addItemListToCart
ItemListAddToCartResponse addItemListToCart(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, String itemListId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Adds allItemListItems
to the cart from theItemList
identified by the provided itemListId- Parameters:
cart
- The cart that is to be added tocustomerRef
- The current customer & owner of the cartitemListId
- The id of the ItemList that is to be added to cartcontextInfo
- The context of the current request- Returns:
- A DTO representing the updated cart & any individual add to cart failures
-
addItemListsToCart
ItemListAddToCartResponse addItemListsToCart(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, Set<String> itemListIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Adds allItemListItems
to the cart from theItemLists
identified by the provided itemListIds- Parameters:
cart
- The cart that is to be added tocustomerRef
- The current customer & owner of the cartitemListIds
- The ids of the ItemLists that are to be added to cartcontextInfo
- The context of the current request- Returns:
- A DTO representing the updated cart & any individual add to cart failures
-