Interface CustomerAddAddressAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Adding an address to the Customer produces the CustomerAddressAdded Message.
Example to create an instance using the builder pattern
CustomerAddAddressAction customerAddAddressAction = CustomerAddAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerAddAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerAddAddressActionbuilder
(CustomerAddAddressAction template) create builder for CustomerAddAddressAction instancestatic CustomerAddAddressAction
deepCopy
(CustomerAddAddressAction template) factory method to create a deep copy of CustomerAddAddressAction@NotNull @Valid BaseAddress
Value to append to theaddresses
array.static CustomerAddAddressAction
of()
factory methodstatic CustomerAddAddressAction
of
(CustomerAddAddressAction template) factory method to create a shallow copy CustomerAddAddressActionvoid
setAddress
(BaseAddress address) Value to append to theaddresses
array.static com.fasterxml.jackson.core.type.TypeReference<CustomerAddAddressAction>
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
-
ADD_ADDRESS
discriminator value for CustomerAddAddressAction- See Also:
-
-
Method Details
-
getAddress
Value to append to the
addresses
array.- Returns:
- address
-
setAddress
Value to append to the
addresses
array.- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of CustomerAddAddressAction
-
of
factory method to create a shallow copy CustomerAddAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerAddAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerAddAddressAction- Returns:
- builder
-
builder
create builder for CustomerAddAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerAddAddressAction
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
-