public static class Storefront.Market extends AbstractResponse<Storefront.Market> implements Storefront.HasMetafields, Storefront.MetafieldParentResource, Storefront.Node
optimisticData, responseData| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getHandle()
A human-readable unique string for the market automatically generated from its title.
|
ID |
getId()
A globally-unique ID.
|
Storefront.Metafield |
getMetafield()
Returns a metafield found by namespace and key.
|
java.util.List<Storefront.Metafield> |
getMetafields()
The metafields associated with the resource matching the supplied list of namespaces and keys.
|
Storefront.Market |
setHandle(java.lang.String arg) |
Storefront.Market |
setMetafield(Storefront.Metafield arg) |
Storefront.Market |
setMetafields(java.util.List<Storefront.Metafield> arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Market()
public Market(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.HasMetafieldsgetGraphQlTypeName in interface Storefront.MetafieldParentResourcegetGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic java.lang.String getHandle()
public Storefront.Market setHandle(java.lang.String arg)
public ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic Storefront.Metafield getMetafield()
getMetafield in interface Storefront.HasMetafieldspublic Storefront.Market setMetafield(Storefront.Metafield arg)
public java.util.List<Storefront.Metafield> getMetafields()
getMetafields in interface Storefront.HasMetafieldspublic Storefront.Market setMetafields(java.util.List<Storefront.Metafield> arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Market>