public static class Storefront.CustomerAccessToken extends AbstractResponse<Storefront.CustomerAccessToken>
optimisticData, responseData| Constructor and Description |
|---|
CustomerAccessToken() |
CustomerAccessToken(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAccessToken()
The customer’s access token.
|
DateTime |
getExpiresAt()
The date and time when the customer access token expires.
|
java.lang.String |
getGraphQlTypeName() |
Storefront.CustomerAccessToken |
setAccessToken(java.lang.String arg) |
Storefront.CustomerAccessToken |
setExpiresAt(DateTime arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CustomerAccessToken()
public CustomerAccessToken(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public java.lang.String getAccessToken()
public Storefront.CustomerAccessToken setAccessToken(java.lang.String arg)
public DateTime getExpiresAt()
public Storefront.CustomerAccessToken setExpiresAt(DateTime arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CustomerAccessToken>