Class BulkAddToCartResponse


  • public class BulkAddToCartResponse
    extends Object
    The response object used when multiple items are added to the cart simultaneously, including the updated cart & a collection of any individual add to cart failures.
    Author:
    Chris Kittrell (ckittrell)
    • Constructor Detail

      • BulkAddToCartResponse

        public BulkAddToCartResponse()
    • Method Detail

      • getCart

        public com.broadleafcommerce.cart.client.domain.Cart getCart()
        The most up-to-date cart that includes all requests that were successfully processed
      • getCartItems

        public List<com.broadleafcommerce.cart.client.domain.CartItem> getCartItems()
        The list of CartItems that were successfully added from the AddItemRequests
      • setCart

        public void setCart​(com.broadleafcommerce.cart.client.domain.Cart cart)
        The most up-to-date cart that includes all requests that were successfully processed
      • setCartItems

        public void setCartItems​(List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems)
        The list of CartItems that were successfully added from the AddItemRequests
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object