Interface CartService
-
- All Superinterfaces:
CartCheckoutBaseService
- All Known Subinterfaces:
CPQCartService
- All Known Implementing Classes:
CPQDefaultCartService,DefaultCartService
public interface CartService extends CartCheckoutBaseService
Service for updating cart data like Adding/updating cart entries
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<CartModificationData>addEntriesToCart(java.util.List<OrderEntryData> orderEntries)Adds quick order entries to the cart.voidaddItemsToCart(java.util.List<Item> items)Adds an item to the cart.CartModificationDataaddToCart(java.lang.String code, long quantity)Adds an entry to the cart.booleanisItemAvailable(java.lang.String itemKey)Does an item exist with a given key?CartModificationDataupdateCartEntry(long entryNumber, long quantity)Updates a cart entryjava.util.List<CartModificationData>validateCartData()Validates cart-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtservices.cart.CartCheckoutBaseService
getSessionCart, getSessionCart, hasSessionCart, removeSessionCart
-
-
-
-
Method Detail
-
addToCart
CartModificationData addToCart(java.lang.String code, long quantity)
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
CartModificationData updateCartEntry(long entryNumber, long quantity)
Updates a cart entry- Parameters:
entryNumber- Item numberquantity- New quantity of item- Returns:
- Cart modifications
-
validateCartData
java.util.List<CartModificationData> validateCartData()
Validates cart- Returns:
- Modification status as result of the validation
-
isItemAvailable
boolean isItemAvailable(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?
-
addItemsToCart
void addItemsToCart(java.util.List<Item> items)
Adds an item to the cart.- Parameters:
items- list of items
-
addEntriesToCart
java.util.List<CartModificationData> addEntriesToCart(java.util.List<OrderEntryData> orderEntries)
Adds quick order entries to the cart.- Parameters:
orderEntries-- Returns:
-
-