Class InventoryAvailabilityRequest
- All Implemented Interfaces:
Serializable
- Author:
- Marie Standeven (mariestandeven)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Map holding any additional attributes passed in the request not matching any defined properties.int
The quantity being requested for this item.The reference number used to identify any existing soft inventory reservations.getSku()
This Stock Keeping Unit that uniquely identifies this item.int
hashCode()
void
setAdditionalAttributes
(Map<String, Object> additionalAttributes) Map holding any additional attributes passed in the request not matching any defined properties.void
setQuantity
(int quantity) The quantity being requested for this item.void
setReferenceNumber
(String referenceNumber) The reference number used to identify any existing soft inventory reservations.void
This Stock Keeping Unit that uniquely identifies this item.toString()
-
Constructor Details
-
InventoryAvailabilityRequest
public InventoryAvailabilityRequest()
-
-
Method Details
-
getSku
This Stock Keeping Unit that uniquely identifies this item. -
getReferenceNumber
The reference number used to identify any existing soft inventory reservations.Existing soft reservations are excluded if this field is passed in. For example, if a SKU has total of 2 available and 1 is reserved for userA, and userA checks inventory availability for a quantity of 2 for the same SKU. The existing soft reservation is excluded from the check in this case, effectively making this request to check for an additional quantity of 1 to be available. However, if userB sends the same request to check availability for a quantity of 2 for the same SKU, it would return unavailable since only 1 is available as the other one is reserved for userA.
-
getQuantity
public int getQuantity()The quantity being requested for this item. -
getAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setSku
This Stock Keeping Unit that uniquely identifies this item. -
setReferenceNumber
The reference number used to identify any existing soft inventory reservations.Existing soft reservations are excluded if this field is passed in. For example, if a SKU has total of 2 available and 1 is reserved for userA, and userA checks inventory availability for a quantity of 2 for the same SKU. The existing soft reservation is excluded from the check in this case, effectively making this request to check for an additional quantity of 1 to be available. However, if userB sends the same request to check availability for a quantity of 2 for the same SKU, it would return unavailable since only 1 is available as the other one is reserved for userA.
-
setQuantity
public void setQuantity(int quantity) The quantity being requested for this item. -
setAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-