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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
AllAddItemFailures
that occurred.com.broadleafcommerce.cart.client.domain.Cart
getCart()
The most up-to-date cart that includes all requests that were successfully processedList<com.broadleafcommerce.cart.client.domain.CartItem>
The list ofCartItems
that were successfully added from theAddItemRequests
int
hashCode()
void
setAddItemFailures
(List<AddItemFailure> addItemFailures) AllAddItemFailures
that occurred.void
setCart
(com.broadleafcommerce.cart.client.domain.Cart cart) The most up-to-date cart that includes all requests that were successfully processedvoid
setCartItems
(List<com.broadleafcommerce.cart.client.domain.CartItem> cartItems) The list ofCartItems
that were successfully added from theAddItemRequests
toString()
-
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 ofCartItems
that were successfully added from theAddItemRequests
-
getAddItemFailures
AllAddItemFailures
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
The list ofCartItems
that were successfully added from theAddItemRequests
-
setAddItemFailures
AllAddItemFailures
that occurred. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-