public static class Storefront.StoreAvailability extends AbstractResponse<Storefront.StoreAvailability>
optimisticData, responseData| Constructor and Description |
|---|
StoreAvailability() |
StoreAvailability(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getAvailable()
Whether the product variant is in-stock at this location.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.Location |
getLocation()
The location where this product variant is stocked at.
|
java.lang.String |
getPickUpTime()
Returns the estimated amount of time it takes for pickup to be ready (Example: Usually ready in 24
hours).
|
java.lang.Integer |
getQuantityAvailable()
The quantity of the product variant in-stock at this location.
|
Storefront.StoreAvailability |
setAvailable(java.lang.Boolean arg) |
Storefront.StoreAvailability |
setLocation(Storefront.Location arg) |
Storefront.StoreAvailability |
setPickUpTime(java.lang.String arg) |
Storefront.StoreAvailability |
setQuantityAvailable(java.lang.Integer arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic StoreAvailability()
public StoreAvailability(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public java.lang.Boolean getAvailable()
public Storefront.StoreAvailability setAvailable(java.lang.Boolean arg)
public Storefront.Location getLocation()
public Storefront.StoreAvailability setLocation(Storefront.Location arg)
public java.lang.String getPickUpTime()
public Storefront.StoreAvailability setPickUpTime(java.lang.String arg)
public java.lang.Integer getQuantityAvailable()
public Storefront.StoreAvailability setQuantityAvailable(java.lang.Integer arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.StoreAvailability>