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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.cart.client.domain.Cart
getCart()
TheCart
related to the checkout submission.Map ofItemList
ids to a collection ofItemListItem
ids that could not be added to cartFrom the list of ids that the user attempted to add to cart, this represents the set ofItemList
ids that the user does not have access toint
hashCode()
void
setCart
(com.broadleafcommerce.cart.client.domain.Cart cart) TheCart
related to the checkout submission.void
setFailedItemAdditions
(Map<String, List<String>> failedItemAdditions) Map ofItemList
ids to a collection ofItemListItem
ids that could not be added to cartvoid
setInaccessibleItemListIds
(Set<String> inaccessibleItemListIds) From the list of ids that the user attempted to add to cart, this represents the set ofItemList
ids that the user does not have access totoString()
-
Constructor Details
-
ItemListAddToCartResponse
public ItemListAddToCartResponse()
-
-
Method Details
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()TheCart
related 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 ofItemList
ids that the user does not have access to- Returns:
- The set of ItemList ids that the user does not have access to
-
getFailedItemAdditions
Map ofItemList
ids to a collection ofItemListItem
ids 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) TheCart
related 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 ofItemList
ids 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 ofItemList
ids to a collection ofItemListItem
ids 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
-