Interface CustomerChangeAddressAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Changing an address of the Customer produces the CustomerAddressChanged Message.
Either addressId
or addressKey
is required.
Example to create an instance using the builder pattern
CustomerChangeAddressAction customerChangeAddressAction = CustomerChangeAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerChangeAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerChangeAddressActionbuilder
(CustomerChangeAddressAction template) create builder for CustomerChangeAddressAction instancestatic CustomerChangeAddressAction
deepCopy
(CustomerChangeAddressAction template) factory method to create a deep copy of CustomerChangeAddressAction@NotNull @Valid BaseAddress
Value to set.id
of the Address to change.key
of the Address to change.static CustomerChangeAddressAction
of()
factory methodstatic CustomerChangeAddressAction
of
(CustomerChangeAddressAction template) factory method to create a shallow copy CustomerChangeAddressActionvoid
setAddress
(BaseAddress address) Value to set.void
setAddressId
(String addressId) id
of the Address to change.void
setAddressKey
(String addressKey) key
of the Address to change.static com.fasterxml.jackson.core.type.TypeReference<CustomerChangeAddressAction>
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
-
CHANGE_ADDRESS
discriminator value for CustomerChangeAddressAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()id
of the Address to change.- Returns:
- addressId
-
getAddressKey
String getAddressKey()key
of the Address to change.- Returns:
- addressKey
-
getAddress
Value to set.
- Returns:
- address
-
setAddressId
id
of the Address to change.- Parameters:
addressId
- value to be set
-
setAddressKey
key
of the Address to change.- Parameters:
addressKey
- value to be set
-
setAddress
Value to set.
- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of CustomerChangeAddressAction
-
of
factory method to create a shallow copy CustomerChangeAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerChangeAddressAction deepCopy(@Nullable CustomerChangeAddressAction template) factory method to create a deep copy of CustomerChangeAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerChangeAddressAction- Returns:
- builder
-
builder
create builder for CustomerChangeAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerChangeAddressAction
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
-