Class ItemListAddToCartResponse
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.ItemListAddToCartResponse
-
- All Implemented Interfaces:
Serializable
public class ItemListAddToCartResponse extends Object implements Serializable
DTO for communicating the results of a checkout submission- Author:
- Chris Kittrell (ckittrell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemListAddToCartResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
com.broadleafcommerce.cart.client.domain.Cart
getCart()
TheCart
related to the checkout submission.Map<String,List<String>>
getFailedItemAdditions()
Map ofItemList
ids to a collection ofItemListItem
ids that could not be added to cartSet<String>
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 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 toString
toString()
-
-
-
Method Detail
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()
TheCart
related to the checkout submission.- Returns:
- The Cart related to the checkout submission.
-
getInaccessibleItemListIds
public Set<String> 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
public Map<String,List<String>> 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
public void 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 to- Parameters:
inaccessibleItemListIds
- The set of ItemList ids that the user does not have access to
-
setFailedItemAdditions
public void setFailedItemAdditions(Map<String,List<String>> failedItemAdditions)
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
-
canEqual
protected boolean canEqual(Object other)
-
-