Interface SkuAvailability
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SkuAvailabilityImpl
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
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 Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the data the SKU will be available.Deprecated.Returns an implementation specific availability status.Deprecated.Returns the getQuantityOnHand() - getReserveQuantity().getId()Deprecated.Returns the id of this SkuAvailabilityDeprecated.Returns the USPSLocation id of this skuAvailability.Deprecated.Returns the number of this items that are currently in stock and available for sell.Deprecated.Returns the reserve quantity.getSkuId()Deprecated.Returns the id of this SKU associated with SkuAvailability recordvoidsetAvailabilityDate(Date availabilityDate) Deprecated.Sets the date the SKU will be available.voidDeprecated.Sets the availability status.voidDeprecated.Sets the id of this SkuAvailability recordvoidsetLocationId(Long id) Deprecated.Sets the USPSLocation id of this skuAvailability.voidsetQuantityOnHand(Integer quantityOnHand) Deprecated.Sets the quantity on hand.voidsetReserveQuantity(Integer reserveQuantity) Deprecated.Sets the reserve quantity.voidDeprecated.Sets the id of this SKU
-
Method Details
-
getId
Long getId()Deprecated.Returns the id of this SkuAvailability -
setId
Deprecated.Sets the id of this SkuAvailability record -
getSkuId
Long getSkuId()Deprecated.Returns the id of this SKU associated with SkuAvailability record -
setSkuId
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
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
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
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
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
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.
-