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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerSetDateOfBirthAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerSetDateOfBirthActionbuilder
(CustomerSetDateOfBirthAction template) create builder for CustomerSetDateOfBirthAction instancestatic CustomerSetDateOfBirthAction
deepCopy
(CustomerSetDateOfBirthAction template) factory method to create a deep copy of CustomerSetDateOfBirthActionValue to set.static CustomerSetDateOfBirthAction
of()
factory methodstatic CustomerSetDateOfBirthAction
of
(CustomerSetDateOfBirthAction template) factory method to create a shallow copy CustomerSetDateOfBirthActionvoid
setDateOfBirth
(LocalDate dateOfBirth) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetDateOfBirthAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateAction
Methods 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
-
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
-