Package com.commercetools.api.models.me
Interface MyCustomerSetDateOfBirthAction
- All Superinterfaces:
MyCustomerUpdateAction
,ResourceUpdateAction<MyCustomerUpdateAction>
Setting the date of birth of the Customer produces the CustomerDateOfBirthSet Message.
Example to create an instance using the builder pattern
MyCustomerSetDateOfBirthAction myCustomerSetDateOfBirthAction = MyCustomerSetDateOfBirthAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCustomerSetDateOfBirthAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCustomerSetDateOfBirthActionbuilder
(MyCustomerSetDateOfBirthAction template) create builder for MyCustomerSetDateOfBirthAction instancedeepCopy
(MyCustomerSetDateOfBirthAction template) factory method to create a deep copy of MyCustomerSetDateOfBirthActionValue to set.of()
factory methodof
(MyCustomerSetDateOfBirthAction template) factory method to create a shallow copy MyCustomerSetDateOfBirthActionvoid
setDateOfBirth
(LocalDate dateOfBirth) Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerSetDateOfBirthAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
getAction, withMyCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DATE_OF_BIRTH
discriminator value for MyCustomerSetDateOfBirthAction- 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 MyCustomerSetDateOfBirthAction
-
of
factory method to create a shallow copy MyCustomerSetDateOfBirthAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyCustomerSetDateOfBirthAction deepCopy(@Nullable MyCustomerSetDateOfBirthAction template) factory method to create a deep copy of MyCustomerSetDateOfBirthAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerSetDateOfBirthAction- Returns:
- builder
-
builder
create builder for MyCustomerSetDateOfBirthAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerSetDateOfBirthAction
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<MyCustomerSetDateOfBirthAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-