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.CartServiceService handling add to cart functionality- Since:
- 1907
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CartModelcreateCartForUserAndBaseSite(UserModel userModel, BaseSiteModel baseSiteModel)Creates a cart for the provided user.booleanvalidateCartForEligibilityRules(AbstractOrderModel cart)This method validates the applied eligibility-
Methods inherited from interface de.hybris.platform.order.AbstractOrderService
addAllGlobalDiscountValues, addAllTotalTaxValues, addGlobalDiscountValue, addNewEntry, addNewEntry, addNewEntry, addTotalTaxValue, clone, getEntriesForNumber, getEntriesForProduct, getEntryForNumber, getGlobalDiscountValue, removeGlobalDiscountValue, removeTotalTaxValue, saveOrder
-
-
-
-
Method Detail
-
createCartForUserAndBaseSite
CartModel createCartForUserAndBaseSite(UserModel userModel, BaseSiteModel baseSiteModel)
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
boolean validateCartForEligibilityRules(AbstractOrderModel cart)
This method validates the applied eligibility- Parameters:
cart- The cart- Returns:
- false all the applied eligibility are valid, true otherwise
-
-