Class SkuInventoryAvailabilitySummary

java.lang.Object
com.broadleafcommerce.inventory.domain.SkuInventoryAvailabilitySummary
All Implemented Interfaces:
Serializable

public class SkuInventoryAvailabilitySummary extends Object implements Serializable
Provides a data structure to simply indicate if the SKU is available without disclosing the quantity available. Summary availability.
Author:
Kelly Tisdell (ktisdell)
See Also:
  • Constructor Details

    • SkuInventoryAvailabilitySummary

      public SkuInventoryAvailabilitySummary()
  • Method Details

    • isAvailable

      public boolean isAvailable()
    • getInventoryLocationId

      public String getInventoryLocationId()
    • getSkuRef

      public SkuRef getSkuRef()
    • getVendorRef

      @Nullable public String getVendorRef()
      Soft reference to the vendor associated with this sku inventory. This value can be null, in which case, no vendor is associated.
      Returns:
      Soft reference to the vendor associated with this sku inventory.
    • setAvailable

      public void setAvailable(boolean available)
    • setInventoryLocationId

      public void setInventoryLocationId(String inventoryLocationId)
    • setSkuRef

      public void setSkuRef(SkuRef skuRef)
    • setVendorRef

      public void setVendorRef(@Nullable String vendorRef)
      Soft reference to the vendor associated with this sku inventory. This value can be null, in which case, no vendor is associated.
      Parameters:
      vendorRef - Soft reference to the vendor associated with this sku inventory.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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