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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CartModel createCartForUserAndBaseSite​(UserModel userModel, BaseSiteModel baseSiteModel)
      Creates a cart for the provided user.
      boolean validateCartForEligibilityRules​(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
      • Methods inherited from interface de.hybris.platform.order.CartService

        addToCart, appendToCart, calculateCart, changeCurrentCartUser, changeSessionCartCurrency, createCartFromQuote, getSessionCart, hasCart, hasSessionCart, removeSessionCart, setSessionCart, updateQuantities, updateQuantities
    • 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 created
        baseSiteModel - 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