Interface InvalidCurrentPasswordError
- All Superinterfaces:
ErrorObject
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
InvalidCurrentPasswordError invalidCurrentPasswordError = InvalidCurrentPasswordError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for InvalidCurrentPasswordError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InvalidCurrentPasswordErrorbuilder
(InvalidCurrentPasswordError template) create builder for InvalidCurrentPasswordError instancestatic InvalidCurrentPasswordError
deepCopy
(InvalidCurrentPasswordError template) factory method to create a deep copy of InvalidCurrentPasswordError@NotNull String
getCode()
Error identifier.@NotNull String
"The given current password does not match."
static InvalidCurrentPasswordError
of()
factory methodstatic InvalidCurrentPasswordError
of
(InvalidCurrentPasswordError template) factory method to create a shallow copy InvalidCurrentPasswordErrorvoid
setMessage
(String message) "The given current password does not match."
static com.fasterxml.jackson.core.type.TypeReference<InvalidCurrentPasswordError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
INVALID_CURRENT_PASSWORD
discriminator value for InvalidCurrentPasswordError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The given current password does not match."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
"The given current password does not match."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of InvalidCurrentPasswordError
-
of
factory method to create a shallow copy InvalidCurrentPasswordError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static InvalidCurrentPasswordError deepCopy(@Nullable InvalidCurrentPasswordError template) factory method to create a deep copy of InvalidCurrentPasswordError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InvalidCurrentPasswordError- Returns:
- builder
-
builder
create builder for InvalidCurrentPasswordError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInvalidCurrentPasswordError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-