Interface CustomerRemoveShippingAddressIdAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Removes a shipping address from shippingAddressesIds
. If the shipping address is the default shipping address, the defaultShippingAddressId
is unset. Either addressId
or addressKey
is required.
Example to create an instance using the builder pattern
CustomerRemoveShippingAddressIdAction customerRemoveShippingAddressIdAction = CustomerRemoveShippingAddressIdAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerRemoveShippingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerRemoveShippingAddressIdActionbuilder
(CustomerRemoveShippingAddressIdAction template) create builder for CustomerRemoveShippingAddressIdAction instancefactory method to create a deep copy of CustomerRemoveShippingAddressIdActionid
of the Address to remove fromshippingAddressesIds
.key
of the Address to remove fromshippingAddressesIds
.of()
factory methodof
(CustomerRemoveShippingAddressIdAction template) factory method to create a shallow copy CustomerRemoveShippingAddressIdActionvoid
setAddressId
(String addressId) id
of the Address to remove fromshippingAddressesIds
.void
setAddressKey
(String addressKey) key
of the Address to remove fromshippingAddressesIds
.static com.fasterxml.jackson.core.type.TypeReference<CustomerRemoveShippingAddressIdAction>
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
-
REMOVE_SHIPPING_ADDRESS_ID
discriminator value for CustomerRemoveShippingAddressIdAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()id
of the Address to remove fromshippingAddressesIds
.- Returns:
- addressId
-
getAddressKey
String getAddressKey()key
of the Address to remove fromshippingAddressesIds
.- Returns:
- addressKey
-
setAddressId
id
of the Address to remove fromshippingAddressesIds
.- Parameters:
addressId
- value to be set
-
setAddressKey
key
of the Address to remove fromshippingAddressesIds
.- Parameters:
addressKey
- value to be set
-
of
factory method- Returns:
- instance of CustomerRemoveShippingAddressIdAction
-
of
factory method to create a shallow copy CustomerRemoveShippingAddressIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerRemoveShippingAddressIdAction deepCopy(@Nullable CustomerRemoveShippingAddressIdAction template) factory method to create a deep copy of CustomerRemoveShippingAddressIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerRemoveShippingAddressIdAction- Returns:
- builder
-
builder
static CustomerRemoveShippingAddressIdActionBuilder builder(CustomerRemoveShippingAddressIdAction template) create builder for CustomerRemoveShippingAddressIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerRemoveShippingAddressIdAction
default <T> T withCustomerRemoveShippingAddressIdAction(Function<CustomerRemoveShippingAddressIdAction, T> helper) 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<CustomerRemoveShippingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-