Interface CustomerPasswordUpdatedMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Reset Customer's Password, Reset Customer's Password in a Store, Change Customer's Password, or Change Customer's Password in a Store request. This Message is also produced during equivalent requests to the My Customer Profile endpoint.
Example to create an instance using the builder pattern
CustomerPasswordUpdatedMessagePayload customerPasswordUpdatedMessagePayload = CustomerPasswordUpdatedMessagePayload.builder()
.reset(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerPasswordUpdatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerPasswordUpdatedMessagePayloadbuilder(CustomerPasswordUpdatedMessagePayload template) create builder for CustomerPasswordUpdatedMessagePayload instancecopyDeep()factory method to create a deep copy of CustomerPasswordUpdatedMessagePayload@NotNull BooleangetReset()Whether the Customer's password was updated during the Reset password or Change password flow.of()factory methodof(CustomerPasswordUpdatedMessagePayload template) factory method to create a shallow copy CustomerPasswordUpdatedMessagePayloadvoidWhether the Customer's password was updated during the Reset password or Change password flow.static com.fasterxml.jackson.core.type.TypeReference<CustomerPasswordUpdatedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CUSTOMER_PASSWORD_UPDATED
discriminator value for CustomerPasswordUpdatedMessagePayload- See Also:
-
-
Method Details
-
getReset
Whether the Customer's password was updated during the Reset password or Change password flow.
- Returns:
- reset
-
setReset
Whether the Customer's password was updated during the Reset password or Change password flow.
- Parameters:
reset- value to be set
-
of
factory method- Returns:
- instance of CustomerPasswordUpdatedMessagePayload
-
of
factory method to create a shallow copy CustomerPasswordUpdatedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerPasswordUpdatedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static CustomerPasswordUpdatedMessagePayload deepCopy(@Nullable CustomerPasswordUpdatedMessagePayload template) factory method to create a deep copy of CustomerPasswordUpdatedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerPasswordUpdatedMessagePayload- Returns:
- builder
-
builder
static CustomerPasswordUpdatedMessagePayloadBuilder builder(CustomerPasswordUpdatedMessagePayload template) create builder for CustomerPasswordUpdatedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerPasswordUpdatedMessagePayload
default <T> T withCustomerPasswordUpdatedMessagePayload(Function<CustomerPasswordUpdatedMessagePayload, 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<CustomerPasswordUpdatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-