Class BulkAddToCartResponse

java.lang.Object
com.broadleafcommerce.cartoperation.service.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 Details

    • BulkAddToCartResponse

      public BulkAddToCartResponse()
  • Method Details

    • 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
    • getAddItemFailures

      public List<AddItemFailure> getAddItemFailures()
      All AddItemFailures that occurred.
    • 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
    • setAddItemFailures

      public void setAddItemFailures(List<AddItemFailure> addItemFailures)
      All AddItemFailures that occurred.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object