Interface CustomerEmailTokenCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create email token for Customer request. The resource
property of the Message is a CustomerEmailTokenReference.
Example to create an instance using the builder pattern
CustomerEmailTokenCreatedMessagePayload customerEmailTokenCreatedMessagePayload = CustomerEmailTokenCreatedMessagePayload.builder()
.customerId("{customerId}")
.expiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerEmailTokenCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerEmailTokenCreatedMessagePayloadcreate builder for CustomerEmailTokenCreatedMessagePayload instancefactory method to create a deep copy of CustomerEmailTokenCreatedMessagePayload@NotNull String
Unique identifier of the Customer.@NotNull ZonedDateTime
Date and time (UTC) the email token expires.of()
factory methodof
(CustomerEmailTokenCreatedMessagePayload template) factory method to create a shallow copy CustomerEmailTokenCreatedMessagePayloadvoid
setCustomerId
(String customerId) Unique identifier of the Customer.void
setExpiresAt
(ZonedDateTime expiresAt) Date and time (UTC) the email token expires.static com.fasterxml.jackson.core.type.TypeReference<CustomerEmailTokenCreatedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerEmailTokenCreatedMessagePayload
(Function<CustomerEmailTokenCreatedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CUSTOMER_EMAIL_TOKEN_CREATED
discriminator value for CustomerEmailTokenCreatedMessagePayload- See Also:
-
-
Method Details
-
getCustomerId
Unique identifier of the Customer.
- Returns:
- customerId
-
getExpiresAt
Date and time (UTC) the email token expires.
- Returns:
- expiresAt
-
setCustomerId
Unique identifier of the Customer.
- Parameters:
customerId
- value to be set
-
setExpiresAt
Date and time (UTC) the email token expires.
- Parameters:
expiresAt
- value to be set
-
of
factory method- Returns:
- instance of CustomerEmailTokenCreatedMessagePayload
-
of
factory method to create a shallow copy CustomerEmailTokenCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerEmailTokenCreatedMessagePayload deepCopy(@Nullable CustomerEmailTokenCreatedMessagePayload template) factory method to create a deep copy of CustomerEmailTokenCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerEmailTokenCreatedMessagePayload- Returns:
- builder
-
builder
static CustomerEmailTokenCreatedMessagePayloadBuilder builder(CustomerEmailTokenCreatedMessagePayload template) create builder for CustomerEmailTokenCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerEmailTokenCreatedMessagePayload
default <T> T withCustomerEmailTokenCreatedMessagePayload(Function<CustomerEmailTokenCreatedMessagePayload, 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<CustomerEmailTokenCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-