Interface ExpiredCustomerPasswordTokenError
- All Superinterfaces:
ErrorObject
Returned when the provided password token of the Customer has expired.
The error is returned as a failed response to:
- Get Customer by password token and Get Customer in Store by password token requests
- Reset password of Customer and Reset password of Customer in Store requests
Example to create an instance using the builder pattern
ExpiredCustomerPasswordTokenError expiredCustomerPasswordTokenError = ExpiredCustomerPasswordTokenError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ExpiredCustomerPasswordTokenError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ExpiredCustomerPasswordTokenErrorbuilder
(ExpiredCustomerPasswordTokenError template) create builder for ExpiredCustomerPasswordTokenError instancecopyDeep()
deepCopy
(ExpiredCustomerPasswordTokenError template) factory method to create a deep copy of ExpiredCustomerPasswordTokenError@NotNull String
getCode()
Error identifier.@NotNull String
"The given password token has expired."
of()
factory methodof
(ExpiredCustomerPasswordTokenError template) factory method to create a shallow copy ExpiredCustomerPasswordTokenErrorvoid
setMessage
(String message) "The given password token has expired."
static com.fasterxml.jackson.core.type.TypeReference<ExpiredCustomerPasswordTokenError>
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
-
EXPIRED_CUSTOMER_PASSWORD_TOKEN
discriminator value for ExpiredCustomerPasswordTokenError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The given password token has expired."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
"The given password token has expired."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of ExpiredCustomerPasswordTokenError
-
of
factory method to create a shallow copy ExpiredCustomerPasswordTokenError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ExpiredCustomerPasswordTokenError copyDeep()- Specified by:
copyDeep
in interfaceErrorObject
-
deepCopy
@Nullable static ExpiredCustomerPasswordTokenError deepCopy(@Nullable ExpiredCustomerPasswordTokenError template) factory method to create a deep copy of ExpiredCustomerPasswordTokenError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExpiredCustomerPasswordTokenError- Returns:
- builder
-
builder
create builder for ExpiredCustomerPasswordTokenError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withExpiredCustomerPasswordTokenError
default <T> T withExpiredCustomerPasswordTokenError(Function<ExpiredCustomerPasswordTokenError, 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<ExpiredCustomerPasswordTokenError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-