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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for InvalidCurrentPasswordError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for InvalidCurrentPasswordErrorbuilder(InvalidCurrentPasswordError template) create builder for InvalidCurrentPasswordError instancecopyDeep()static InvalidCurrentPasswordErrordeepCopy(InvalidCurrentPasswordError template) factory method to create a deep copy of InvalidCurrentPasswordError@NotNull StringgetCode()Error identifier.@NotNull String"The given current password does not match."static InvalidCurrentPasswordErrorof()factory methodstatic InvalidCurrentPasswordErrorof(InvalidCurrentPasswordError template) factory method to create a shallow copy InvalidCurrentPasswordErrorvoidsetMessage(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> Taccessor 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:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"The given current password does not match."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
"The given current password does not match."- Specified by:
setMessagein 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
-
copyDeep
InvalidCurrentPasswordError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
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
-