public static class Storefront.CustomerCreatePayload extends AbstractResponse<Storefront.CustomerCreatePayload>
optimisticData, responseData| Constructor and Description |
|---|
CustomerCreatePayload() |
CustomerCreatePayload(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
Storefront.Customer |
getCustomer()
The created customer object.
|
java.util.List<Storefront.CustomerUserError> |
getCustomerUserErrors()
The list of errors that occurred from executing the mutation.
|
java.lang.String |
getGraphQlTypeName() |
java.util.List<Storefront.UserError> |
getUserErrors()
Deprecated.
Use `customerUserErrors` instead.
|
Storefront.CustomerCreatePayload |
setCustomer(Storefront.Customer arg) |
Storefront.CustomerCreatePayload |
setCustomerUserErrors(java.util.List<Storefront.CustomerUserError> arg) |
Storefront.CustomerCreatePayload |
setUserErrors(java.util.List<Storefront.UserError> arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CustomerCreatePayload()
public CustomerCreatePayload(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public Storefront.Customer getCustomer()
public Storefront.CustomerCreatePayload setCustomer(Storefront.Customer arg)
public java.util.List<Storefront.CustomerUserError> getCustomerUserErrors()
public Storefront.CustomerCreatePayload setCustomerUserErrors(java.util.List<Storefront.CustomerUserError> arg)
public java.util.List<Storefront.UserError> getUserErrors()
public Storefront.CustomerCreatePayload setUserErrors(java.util.List<Storefront.UserError> arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CustomerCreatePayload>