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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerRemoveShippingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerRemoveShippingAddressIdActionbuilder(CustomerRemoveShippingAddressIdAction template) create builder for CustomerRemoveShippingAddressIdAction instancecopyDeep()factory method to create a deep copy of CustomerRemoveShippingAddressIdActionof()factory methodof(CustomerRemoveShippingAddressIdAction template) factory method to create a shallow copy CustomerRemoveShippingAddressIdActionvoidsetAddressId(String addressId) voidsetAddressKey(String addressKey) static com.fasterxml.jackson.core.type.TypeReference<CustomerRemoveShippingAddressIdAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateActionMethods 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()idof the Address to remove fromshippingAddressesIds.- Returns:
- addressId
-
getAddressKey
String getAddressKey()keyof the Address to remove fromshippingAddressesIds.- Returns:
- addressKey
-
setAddressId
idof the Address to remove fromshippingAddressesIds.- Parameters:
addressId- value to be set
-
setAddressKey
keyof 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
-
copyDeep
CustomerRemoveShippingAddressIdAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
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
-