Interface CartService
- All Superinterfaces:
CartCheckoutBaseService
- All Known Subinterfaces:
CPQCartService
- All Known Implementing Classes:
CPQDefaultCartService,DefaultCartService
Service for updating cart data like Adding/updating cart entries
-
Method Summary
Modifier and TypeMethodDescriptionaddEntriesToCart(List<OrderEntryData> orderEntries) Adds quick order entries to the cart.voidaddItemsToCart(List<Item> items) Adds an item to the cart.Adds an entry to the cart.booleanisItemAvailable(String itemKey) Does an item exist with a given key?updateCartEntry(long entryNumber, long quantity) Updates a cart entryValidates cartMethods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartCheckoutBaseService
getSessionCart, getSessionCart, hasSessionCart, removeSessionCart
-
Method Details
-
addToCart
Adds an entry to the cart. The result contains error messages if those have occurred.- Parameters:
code- Product IDquantity- Quantity to be added- Returns:
- Cart modification data
-
updateCartEntry
Updates a cart entry- Parameters:
entryNumber- Item numberquantity- New quantity of item- Returns:
- Cart modifications
-
validateCartData
List<CartModificationData> validateCartData()Validates cart- Returns:
- Modification status as result of the validation
-
isItemAvailable
Does an item exist with a given key?- Parameters:
itemKey- key for the item.- Returns:
- Does item exist for the item key?
-
addItemsToCart
Adds an item to the cart.- Parameters:
items- list of items
-
addEntriesToCart
Adds quick order entries to the cart.- Parameters:
orderEntries- order entries list- Returns:
- list of CartModificationData objects
-