Class BulkAddToCartResponse
java.lang.Object
com.broadleafcommerce.cartoperation.service.BulkAddToCartResponse
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAllAddItemFailuresthat occurred.com.broadleafcommerce.cart.client.domain.CartgetCart()The most up-to-date cart that includes all requests that were successfully processedList<com.broadleafcommerce.cart.client.domain.CartItem>The list ofCartItemsthat were successfully added from theAddItemRequestsinthashCode()voidsetAddItemFailures(List<AddItemFailure> addItemFailures) AllAddItemFailuresthat occurred.voidsetCart(com.broadleafcommerce.cart.client.domain.Cart cart) The most up-to-date cart that includes all requests that were successfully processedvoidsetCartItems(List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems) The list ofCartItemsthat were successfully added from theAddItemRequeststoString()
-
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
The list ofCartItemsthat were successfully added from theAddItemRequests -
getAddItemFailures
AllAddItemFailuresthat 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
The list ofCartItemsthat were successfully added from theAddItemRequests -
setAddItemFailures
AllAddItemFailuresthat occurred. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-