Package com.commercetools.api.models.me
Interface MyCustomerAddAddressAction
- All Superinterfaces:
MyCustomerUpdateAction
,ResourceUpdateAction<MyCustomerUpdateAction>
Adding an address to the Customer produces the CustomerAddressAdded Message.
Example to create an instance using the builder pattern
MyCustomerAddAddressAction myCustomerAddAddressAction = MyCustomerAddAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCustomerAddAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCustomerAddAddressActionbuilder
(MyCustomerAddAddressAction template) create builder for MyCustomerAddAddressAction instancestatic MyCustomerAddAddressAction
deepCopy
(MyCustomerAddAddressAction template) factory method to create a deep copy of MyCustomerAddAddressAction@NotNull @Valid BaseAddress
Value to append to theaddresses
array.static MyCustomerAddAddressAction
of()
factory methodstatic MyCustomerAddAddressAction
of
(MyCustomerAddAddressAction template) factory method to create a shallow copy MyCustomerAddAddressActionvoid
setAddress
(BaseAddress address) Value to append to theaddresses
array.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerAddAddressAction>
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
-
ADD_ADDRESS
discriminator value for MyCustomerAddAddressAction- 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 MyCustomerAddAddressAction
-
of
factory method to create a shallow copy MyCustomerAddAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of MyCustomerAddAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerAddAddressAction- Returns:
- builder
-
builder
create builder for MyCustomerAddAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerAddAddressAction
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
-