Interface GraphQLInvalidCurrentPasswordError
- All Superinterfaces:
GraphQLErrorObject
Returned when the current password of the Customer does not match.
The error is returned as a failed response to:
- Change Customer Password and Change Customer Password in a Store requests on Customers.
- Change Customer Password and Change Customer Password in a Store requests on My Customer Profile.
Example to create an instance using the builder pattern
GraphQLInvalidCurrentPasswordError graphQLInvalidCurrentPasswordError = GraphQLInvalidCurrentPasswordError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLInvalidCurrentPasswordError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLInvalidCurrentPasswordErrorbuilder
(GraphQLInvalidCurrentPasswordError template) create builder for GraphQLInvalidCurrentPasswordError instancedeepCopy
(GraphQLInvalidCurrentPasswordError template) factory method to create a deep copy of GraphQLInvalidCurrentPasswordError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.of()
factory methodof
(GraphQLInvalidCurrentPasswordError template) factory method to create a shallow copy GraphQLInvalidCurrentPasswordErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLInvalidCurrentPasswordError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
INVALID_CURRENT_PASSWORD
discriminator value for GraphQLInvalidCurrentPasswordError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
of
factory method- Returns:
- instance of GraphQLInvalidCurrentPasswordError
-
of
factory method to create a shallow copy GraphQLInvalidCurrentPasswordError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLInvalidCurrentPasswordError deepCopy(@Nullable GraphQLInvalidCurrentPasswordError template) factory method to create a deep copy of GraphQLInvalidCurrentPasswordError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLInvalidCurrentPasswordError- Returns:
- builder
-
builder
static GraphQLInvalidCurrentPasswordErrorBuilder builder(GraphQLInvalidCurrentPasswordError template) create builder for GraphQLInvalidCurrentPasswordError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLInvalidCurrentPasswordError
default <T> T withGraphQLInvalidCurrentPasswordError(Function<GraphQLInvalidCurrentPasswordError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLInvalidCurrentPasswordError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-