Interface CPQCartService
-
- All Superinterfaces:
CartCheckoutBaseService,CartService
- All Known Implementing Classes:
CPQDefaultCartService
public interface CPQCartService extends CartService
Service for updating cart data like Adding/updating cart entries for configurable product.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringaddConfigurationToCart(ConfigModel configModel)Adds a new configuration to the cart.ItemgetItemByKey(java.lang.String itemKey)Does an item exist with a given key?java.lang.StringupdateConfigurationInCart(java.lang.String key, ConfigModel configModel)Updates the configuration attached to an item-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartCheckoutBaseService
getSessionCart, getSessionCart, hasSessionCart, removeSessionCart
-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartService
addEntriesToCart, addItemsToCart, addToCart, isItemAvailable, updateCartEntry, validateCartData
-
-
-
-
Method Detail
-
addConfigurationToCart
java.lang.String addConfigurationToCart(ConfigModel configModel)
Adds a new configuration to the cart. A new item will be created, based on the root instance of the config model- Parameters:
configModel- Configutation model, which will be added to the cart- Returns:
- Key of new item
-
updateConfigurationInCart
java.lang.String updateConfigurationInCart(java.lang.String key, ConfigModel configModel)Updates the configuration attached to an item- Parameters:
key- Key of existing itemconfigModel- Configuration- Returns:
- Key of updated item
-
getItemByKey
Item getItemByKey(java.lang.String itemKey)
Does an item exist with a given key?- Parameters:
itemKey- key for the item.- Returns:
- Does item exist for the item key?
-
-