java.lang.Object
com.broadleafcommerce.inventory.service.provider.domain.CartItem

public class CartItem extends Object
Summarization of cart item fields relevant for creating an inventory reservation request.
  • Constructor Details

    • CartItem

      public CartItem()
  • Method Details

    • getId

      public String getId()
    • getSku

      public String getSku()
    • getDependentCartItems

      public List<CartItem> getDependentCartItems()
    • getInternalAttributes

      public Map<String,Object> getInternalAttributes()
      Miscellaneous internal attributes for this item. This map is used for attributes that assist in the internal working of Broadleaf MicroServices. For example, attributes to help with pricing of dependent items.
      Returns:
      Miscellaneous internal attributes for this item.
    • setId

      public void setId(String id)
    • setSku

      public void setSku(String sku)
    • setDependentCartItems

      public void setDependentCartItems(List<CartItem> dependentCartItems)
    • setInternalAttributes

      public void setInternalAttributes(Map<String,Object> internalAttributes)
      Miscellaneous internal attributes for this item. This map is used for attributes that assist in the internal working of Broadleaf MicroServices. For example, attributes to help with pricing of dependent items.
      Parameters:
      internalAttributes - Miscellaneous internal attributes for this item.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object