Interface CustomerSetDateOfBirthAction
- All Superinterfaces:
CustomerUpdateAction,ResourceUpdateAction<CustomerUpdateAction>
Setting the date of birth of the Customer produces the CustomerDateOfBirthSet Message.
Example to create an instance using the builder pattern
CustomerSetDateOfBirthAction customerSetDateOfBirthAction = CustomerSetDateOfBirthAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerSetDateOfBirthAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerSetDateOfBirthActionbuilder(CustomerSetDateOfBirthAction template) create builder for CustomerSetDateOfBirthAction instancecopyDeep()static CustomerSetDateOfBirthActiondeepCopy(CustomerSetDateOfBirthAction template) factory method to create a deep copy of CustomerSetDateOfBirthActionValue to set.static CustomerSetDateOfBirthActionof()factory methodstatic CustomerSetDateOfBirthActionof(CustomerSetDateOfBirthAction template) factory method to create a shallow copy CustomerSetDateOfBirthActionvoidsetDateOfBirth(LocalDate dateOfBirth) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetDateOfBirthAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DATE_OF_BIRTH
discriminator value for CustomerSetDateOfBirthAction- See Also:
-
-
Method Details
-
getDateOfBirth
LocalDate getDateOfBirth()Value to set. If empty, any existing value is removed.
- Returns:
- dateOfBirth
-
setDateOfBirth
Value to set. If empty, any existing value is removed.
- Parameters:
dateOfBirth- value to be set
-
of
factory method- Returns:
- instance of CustomerSetDateOfBirthAction
-
of
factory method to create a shallow copy CustomerSetDateOfBirthAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerSetDateOfBirthAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
deepCopy
@Nullable static CustomerSetDateOfBirthAction deepCopy(@Nullable CustomerSetDateOfBirthAction template) factory method to create a deep copy of CustomerSetDateOfBirthAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetDateOfBirthAction- Returns:
- builder
-
builder
create builder for CustomerSetDateOfBirthAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetDateOfBirthAction
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
-