Class 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 Detail

      • ItemListAddToCartResponse

        public ItemListAddToCartResponse()
    • Method Detail

      • getCart

        public com.broadleafcommerce.cart.client.domain.Cart getCart()
        The Cart 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 of ItemList 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 of ItemList ids to a collection of ItemListItem 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)
        The Cart 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 of ItemList 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 of ItemList ids to a collection of ItemListItem 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object