Interface TmaCartService
- All Superinterfaces:
de.hybris.platform.order.AbstractOrderService<CartModel,,CartEntryModel> de.hybris.platform.order.CartService
- All Known Implementing Classes:
DefaultTmaCartService
public interface TmaCartService
extends de.hybris.platform.order.CartService
Service handling add to cart functionality
- Since:
- 1907
-
Method Summary
Modifier and TypeMethodDescriptioncreateCartForUserAndBaseSite(UserModel userModel, BaseSiteModel baseSiteModel) Creates a cart for the provided user.booleanThis method validates the applied eligibilityMethods inherited from interface de.hybris.platform.order.AbstractOrderService
addAllGlobalDiscountValues, addAllTotalTaxValues, addGlobalDiscountValue, addNewEntry, addNewEntry, addNewEntry, addTotalTaxValue, clone, getEntriesForNumber, getEntriesForProduct, getEntryForNumber, getGlobalDiscountValue, removeGlobalDiscountValue, removeTotalTaxValue, saveOrderMethods inherited from interface de.hybris.platform.order.CartService
addToCart, appendToCart, calculateCart, changeCurrentCartUser, changeSessionCartCurrency, createCartFromQuote, getSessionCart, hasCart, hasSessionCart, removeSessionCart, setSessionCart, updateQuantities, updateQuantities
-
Method Details
-
createCartForUserAndBaseSite
Creates a cart for the provided user.- Parameters:
userModel- The user for which the cart will be createdbaseSiteModel- The base site for which the cart will be created- Returns:
- The cart which was created.
-
validateCartForEligibilityRules
This method validates the applied eligibility- Parameters:
cart- The cart- Returns:
- false all the applied eligibility are valid, true otherwise
-