public static class Storefront.CartCreatePayload extends AbstractResponse<Storefront.CartCreatePayload>
optimisticData, responseData| Constructor and Description |
|---|
CartCreatePayload() |
CartCreatePayload(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.Cart |
getCart()
The new cart.
|
java.lang.String |
getGraphQlTypeName() |
java.util.List<Storefront.CartUserError> |
getUserErrors()
The list of errors that occurred from executing the mutation.
|
Storefront.CartCreatePayload |
setCart(Storefront.Cart arg) |
Storefront.CartCreatePayload |
setUserErrors(java.util.List<Storefront.CartUserError> arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CartCreatePayload()
public CartCreatePayload(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public Storefront.Cart getCart()
public Storefront.CartCreatePayload setCart(Storefront.Cart arg)
public java.util.List<Storefront.CartUserError> getUserErrors()
public Storefront.CartCreatePayload setUserErrors(java.util.List<Storefront.CartUserError> arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CartCreatePayload>