Package com.commercetools.api.models.me
Interface MyCustomerChangeAddressAction
- All Superinterfaces:
MyCustomerUpdateAction
,ResourceUpdateAction<MyCustomerUpdateAction>
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
MyCustomerChangeAddressAction myCustomerChangeAddressAction = MyCustomerChangeAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCustomerChangeAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCustomerChangeAddressActionbuilder
(MyCustomerChangeAddressAction template) create builder for MyCustomerChangeAddressAction instancedeepCopy
(MyCustomerChangeAddressAction template) factory method to create a deep copy of MyCustomerChangeAddressAction@NotNull @Valid BaseAddress
Value to set.id
of the Address to change.key
of the Address to change.of()
factory methodof
(MyCustomerChangeAddressAction template) factory method to create a shallow copy MyCustomerChangeAddressActionvoid
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<MyCustomerChangeAddressAction>
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
-
CHANGE_ADDRESS
discriminator value for MyCustomerChangeAddressAction- 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 MyCustomerChangeAddressAction
-
of
factory method to create a shallow copy MyCustomerChangeAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyCustomerChangeAddressAction deepCopy(@Nullable MyCustomerChangeAddressAction template) factory method to create a deep copy of MyCustomerChangeAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerChangeAddressAction- Returns:
- builder
-
builder
create builder for MyCustomerChangeAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerChangeAddressAction
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
-