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