Interface OrderRemoveItemShippingAddressAction
- All Superinterfaces:
OrderUpdateAction,ResourceUpdateAction<OrderUpdateAction>
An address can only be removed if it is not referenced in any ItemShippingTarget of the Cart. In such case, change the Line Item shipping address to a different addressKey first using the Set LineItemShippingDetails update action, before you remove the obsolete address.
Example to create an instance using the builder pattern
OrderRemoveItemShippingAddressAction orderRemoveItemShippingAddressAction = OrderRemoveItemShippingAddressAction.builder()
.addressKey("{addressKey}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderRemoveItemShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderRemoveItemShippingAddressActionbuilder(OrderRemoveItemShippingAddressAction template) create builder for OrderRemoveItemShippingAddressAction instancecopyDeep()deepCopy(OrderRemoveItemShippingAddressAction template) factory method to create a deep copy of OrderRemoveItemShippingAddressAction@NotNull Stringkeyof the Address to remove fromitemShippingAddresses.of()factory methodof(OrderRemoveItemShippingAddressAction template) factory method to create a shallow copy OrderRemoveItemShippingAddressActionvoidsetAddressKey(String addressKey) keyof the Address to remove fromitemShippingAddresses.static com.fasterxml.jackson.core.type.TypeReference<OrderRemoveItemShippingAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_ITEM_SHIPPING_ADDRESS
discriminator value for OrderRemoveItemShippingAddressAction- See Also:
-
-
Method Details
-
getAddressKey
keyof the Address to remove fromitemShippingAddresses.- Returns:
- addressKey
-
setAddressKey
keyof the Address to remove fromitemShippingAddresses.- Parameters:
addressKey- value to be set
-
of
factory method- Returns:
- instance of OrderRemoveItemShippingAddressAction
-
of
factory method to create a shallow copy OrderRemoveItemShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderRemoveItemShippingAddressAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
deepCopy
@Nullable static OrderRemoveItemShippingAddressAction deepCopy(@Nullable OrderRemoveItemShippingAddressAction template) factory method to create a deep copy of OrderRemoveItemShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderRemoveItemShippingAddressAction- Returns:
- builder
-
builder
static OrderRemoveItemShippingAddressActionBuilder builder(OrderRemoveItemShippingAddressAction template) create builder for OrderRemoveItemShippingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderRemoveItemShippingAddressAction
default <T> T withOrderRemoveItemShippingAddressAction(Function<OrderRemoveItemShippingAddressAction, 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<OrderRemoveItemShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-