public static class Storefront.CheckoutCreatePayload extends AbstractResponse<Storefront.CheckoutCreatePayload>
optimisticData, responseData| Constructor and Description |
|---|
CheckoutCreatePayload() |
CheckoutCreatePayload(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.Checkout |
getCheckout()
The new checkout object.
|
java.util.List<Storefront.CheckoutUserError> |
getCheckoutUserErrors()
The list of errors that occurred from executing the mutation.
|
java.lang.String |
getGraphQlTypeName() |
java.lang.String |
getQueueToken()
The checkout queue token.
|
java.util.List<Storefront.UserError> |
getUserErrors()
Deprecated.
Use `checkoutUserErrors` instead.
|
Storefront.CheckoutCreatePayload |
setCheckout(Storefront.Checkout arg) |
Storefront.CheckoutCreatePayload |
setCheckoutUserErrors(java.util.List<Storefront.CheckoutUserError> arg) |
Storefront.CheckoutCreatePayload |
setQueueToken(java.lang.String arg) |
Storefront.CheckoutCreatePayload |
setUserErrors(java.util.List<Storefront.UserError> arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CheckoutCreatePayload()
public CheckoutCreatePayload(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public Storefront.Checkout getCheckout()
public Storefront.CheckoutCreatePayload setCheckout(Storefront.Checkout arg)
public java.util.List<Storefront.CheckoutUserError> getCheckoutUserErrors()
public Storefront.CheckoutCreatePayload setCheckoutUserErrors(java.util.List<Storefront.CheckoutUserError> arg)
public java.lang.String getQueueToken()
public Storefront.CheckoutCreatePayload setQueueToken(java.lang.String arg)
public java.util.List<Storefront.UserError> getUserErrors()
public Storefront.CheckoutCreatePayload setUserErrors(java.util.List<Storefront.UserError> arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CheckoutCreatePayload>