Class ItemListAddToCartResponse
java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.domain.ItemListAddToCartResponse
- All Implemented Interfaces:
Serializable
DTO for communicating the results of a checkout submission
- Author:
- Chris Kittrell (ckittrell)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.cart.client.domain.CartgetCart()TheCartrelated to the checkout submission.Map ofItemListids to a collection ofItemListItemids that could not be added to cartFrom the list of ids that the user attempted to add to cart, this represents the set ofItemListids that the user does not have access tointhashCode()voidsetCart(com.broadleafcommerce.cart.client.domain.Cart cart) TheCartrelated to the checkout submission.voidsetFailedItemAdditions(Map<String, List<String>> failedItemAdditions) Map ofItemListids to a collection ofItemListItemids that could not be added to cartvoidsetInaccessibleItemListIds(Set<String> inaccessibleItemListIds) From the list of ids that the user attempted to add to cart, this represents the set ofItemListids that the user does not have access totoString()
-
Constructor Details
-
ItemListAddToCartResponse
public ItemListAddToCartResponse()
-
-
Method Details
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()TheCartrelated to the checkout submission.- Returns:
- The Cart related to the checkout submission.
-
getInaccessibleItemListIds
From the list of ids that the user attempted to add to cart, this represents the set ofItemListids that the user does not have access to- Returns:
- The set of ItemList ids that the user does not have access to
-
getFailedItemAdditions
Map ofItemListids to a collection ofItemListItemids that could not be added to cart- Returns:
- Map of ItemList ids to a collection of ItemListItem ids that could not be added to cart
-
setCart
public void setCart(com.broadleafcommerce.cart.client.domain.Cart cart) TheCartrelated to the checkout submission.- Parameters:
cart- The Cart related to the checkout submission.
-
setInaccessibleItemListIds
From the list of ids that the user attempted to add to cart, this represents the set ofItemListids that the user does not have access to- Parameters:
inaccessibleItemListIds- The set of ItemList ids that the user does not have access to
-
setFailedItemAdditions
Map ofItemListids to a collection ofItemListItemids that could not be added to cart- Parameters:
failedItemAdditions- Map of ItemList ids to a collection of ItemListItem ids that could not be added to cart
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-