Class SkuInventoryAvailabilityRequest
- All Implemented Interfaces:
Serializable
- Author:
- Marie Standeven
- 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.Quantity that is being requested (i.e.The reference number used to identify any existing soft inventory reservations.The value of the SKU reference.int
hashCode()
void
setAdditionalAttributes
(Map<String, Object> additionalAttributes) Map holding any additional attributes passed in the request not matching any defined properties.void
setQuantityRequested
(Integer quantityRequested) Quantity that is being requested (i.e.void
setReferenceNumber
(String referenceNumber) The reference number used to identify any existing soft inventory reservations.void
setSkuCode
(String skuCode) The value of the SKU reference.toString()
-
Constructor Details
-
SkuInventoryAvailabilityRequest
public SkuInventoryAvailabilityRequest()
-
-
Method Details
-
getSkuCode
The value of the SKU reference. This will be one of SKU contextId, SKU external ID, arbitrary SKU code, UPC, EAN, or GTIN. -
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.
-
getQuantityRequested
Quantity that is being requested (i.e. the number to check). These must always be positive numbers. -
getAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setSkuCode
The value of the SKU reference. This will be one of SKU contextId, SKU external ID, arbitrary SKU code, UPC, EAN, or GTIN. -
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.
-
setQuantityRequested
Quantity that is being requested (i.e. the number to check). These must always be positive numbers. -
setAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-