Interface CPQCartService
- All Superinterfaces:
CartCheckoutBaseService,CartService
- All Known Implementing Classes:
CPQDefaultCartService
Service for updating cart data like Adding/updating cart entries for configurable product.
-
Method Summary
Modifier and TypeMethodDescriptionaddConfigurationToCart(de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Adds a new configuration to the cart.getItemByKey(String itemKey) Does an item exist with a given key?updateConfigurationInCart(String key, de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Updates the configuration attached to an itemMethods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartCheckoutBaseService
getSessionCart, getSessionCart, hasSessionCart, removeSessionCartMethods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartService
addEntriesToCart, addItemsToCart, addToCart, isItemAvailable, updateCartEntry, validateCartData
-
Method Details
-
addConfigurationToCart
String addConfigurationToCart(de.hybris.platform.sap.productconfig.runtime.interf.model.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
String updateConfigurationInCart(String key, de.hybris.platform.sap.productconfig.runtime.interf.model.ConfigModel configModel) Updates the configuration attached to an item- Parameters:
key- Key of existing itemconfigModel- Configuration- Returns:
- Key of updated item
-
getItemByKey
Does an item exist with a given key?- Parameters:
itemKey- key for the item.- Returns:
- Does item exist for the item key?
-