Interface SkuAvailability

All Superinterfaces:
Serializable
All Known Implementing Classes:
SkuAvailabilityImpl

@Deprecated public interface SkuAvailability extends Serializable
Deprecated.
This is no longer required and is instead implemented as a third-party inventory module
Implementations of this interface are used to hold data about SKU availability.

You should implement this class if you want to make significant changes to how the class is persisted. If you just want to add additional fields then you should extend SkuAvailabilityImpl.
Author:
bpolster
  • Method Details

    • getId

      Long getId()
      Deprecated.
      Returns the id of this SkuAvailability
    • setId

      void setId(Long id)
      Deprecated.
      Sets the id of this SkuAvailability record
    • getSkuId

      Long getSkuId()
      Deprecated.
      Returns the id of this SKU associated with SkuAvailability record
    • setSkuId

      void setSkuId(Long id)
      Deprecated.
      Sets the id of this SKU
    • getLocationId

      Long getLocationId()
      Deprecated.
      Returns the USPSLocation id of this skuAvailability. SKU availability records may or may not be location specific and using null locations are a common implementation model.
    • setLocationId

      void setLocationId(Long id)
      Deprecated.
      Sets the USPSLocation id of this skuAvailability. SKU availability records may or may not be location specific and using null locations are a common implementation model.
    • getAvailabilityStatus

      AvailabilityStatusType getAvailabilityStatus()
      Deprecated.
      Returns an implementation specific availability status. This property can return null.
    • setAvailabilityStatus

      void setAvailabilityStatus(AvailabilityStatusType status)
      Deprecated.
      Sets the availability status.
    • getAvailabilityDate

      Date getAvailabilityDate()
      Deprecated.
      Returns the data the SKU will be available. This property may return null which has an implementation specific meaning.
    • setAvailabilityDate

      void setAvailabilityDate(Date availabilityDate)
      Deprecated.
      Sets the date the SKU will be available. Setting to null is allowed and has an implementation specific meaning.
    • getQuantityOnHand

      Integer getQuantityOnHand()
      Deprecated.
      Returns the number of this items that are currently in stock and available for sell. Returning null has an implementation specific meaning.
    • setQuantityOnHand

      void setQuantityOnHand(Integer quantityOnHand)
      Deprecated.
      Sets the quantity on hand. Setting to null is allowed and has an implementation specific meaning.
    • getReserveQuantity

      Integer getReserveQuantity()
      Deprecated.
      Returns the reserve quantity. Nulls will be treated the same as 0. Implementations may want to manage a reserve quantity at each location so that the available quantity for purchases is the quantityOnHand - reserveQuantity.
    • setReserveQuantity

      void setReserveQuantity(Integer reserveQuantity)
      Deprecated.
      Sets the reserve quantity. Implementations may want to manage a reserve quantity at each location so that the available quantity for purchases is the quantityOnHand - reserveQuantity.
    • getAvailableQuantity

      Integer getAvailableQuantity()
      Deprecated.
      Returns the getQuantityOnHand() - getReserveQuantity(). Preferred implementation is to return null if getQuantityOnHand() is null and to treat a null in getReserveQuantity() as ZERO.