Class ConsolidatedInventoryAvailability

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

public class ConsolidatedInventoryAvailability extends Object implements Serializable
Since:
Order Operation Service 2.1.0, Release Train 2.2.0
See Also:
  • Constructor Details

    • ConsolidatedInventoryAvailability

      public ConsolidatedInventoryAvailability()
  • Method Details

    • getTenantId

      public String getTenantId()
      The tenant ID to which this inventory availability belongs.
      Returns:
      the tenant ID
    • getApplicationId

      public String getApplicationId()
      The application ID to which this inventory availability belongs. This may be null if the inventory belongs to the tenant, and not an application.
      Returns:
      the tenant ID (nullable)
    • getSkuCode

      public String getSkuCode()
      The SKU code.
      Returns:
      the SKU reference
    • isAvailable

      public boolean isAvailable()
      Indicates if this inventory is available or not. Availability will be based on what is requested (e.g. for shipment, for pickup, in store, or a combination of 2 or more).
      Returns:
      whether this SKU is available or not
    • setTenantId

      public void setTenantId(String tenantId)
      The tenant ID to which this inventory availability belongs.
      Parameters:
      tenantId - the tenant ID
    • setApplicationId

      public void setApplicationId(String applicationId)
      The application ID to which this inventory availability belongs. This may be null if the inventory belongs to the tenant, and not an application.
      Parameters:
      applicationId - the application ID (nullable)
    • setSkuCode

      public void setSkuCode(String skuCode)
      The SKU code.
      Parameters:
      skuCode - the SKU or SKU code
    • setAvailable

      public void setAvailable(boolean available)
      Indicates if this inventory is available or not. Availability will be based on what is requested (e.g. for shipment, for pickup, in store, or a combination of 2 or more).
      Parameters:
      available - whether this SKU is available or not
    • 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