Interface CustomerDateOfBirthSetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set Date of Birth update action.
Example to create an instance using the builder pattern
CustomerDateOfBirthSetMessagePayload customerDateOfBirthSetMessagePayload = CustomerDateOfBirthSetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerDateOfBirthSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerDateOfBirthSetMessagePayloadbuilder(CustomerDateOfBirthSetMessagePayload template) create builder for CustomerDateOfBirthSetMessagePayload instancecopyDeep()deepCopy(CustomerDateOfBirthSetMessagePayload template) factory method to create a deep copy of CustomerDateOfBirthSetMessagePayloadThedateOfBirththat was set during the Set Date of Birth update action.of()factory methodof(CustomerDateOfBirthSetMessagePayload template) factory method to create a shallow copy CustomerDateOfBirthSetMessagePayloadvoidsetDateOfBirth(LocalDate dateOfBirth) ThedateOfBirththat was set during the Set Date of Birth update action.static com.fasterxml.jackson.core.type.TypeReference<CustomerDateOfBirthSetMessagePayload>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_DATE_OF_BIRTH_SET
discriminator value for CustomerDateOfBirthSetMessagePayload- See Also:
-
-
Method Details
-
getDateOfBirth
LocalDate getDateOfBirth()The
dateOfBirththat was set during the Set Date of Birth update action.- Returns:
- dateOfBirth
-
setDateOfBirth
The
dateOfBirththat was set during the Set Date of Birth update action.- Parameters:
dateOfBirth- value to be set
-
of
factory method- Returns:
- instance of CustomerDateOfBirthSetMessagePayload
-
of
factory method to create a shallow copy CustomerDateOfBirthSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerDateOfBirthSetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static CustomerDateOfBirthSetMessagePayload deepCopy(@Nullable CustomerDateOfBirthSetMessagePayload template) factory method to create a deep copy of CustomerDateOfBirthSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerDateOfBirthSetMessagePayload- Returns:
- builder
-
builder
static CustomerDateOfBirthSetMessagePayloadBuilder builder(CustomerDateOfBirthSetMessagePayload template) create builder for CustomerDateOfBirthSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerDateOfBirthSetMessagePayload
default <T> T withCustomerDateOfBirthSetMessagePayload(Function<CustomerDateOfBirthSetMessagePayload, 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<CustomerDateOfBirthSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-