Interface StagedOrderRemoveItemShippingAddressAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
An address can only be removed if it is not referenced in any ItemShippingTarget of the Cart.
Example to create an instance using the builder pattern
StagedOrderRemoveItemShippingAddressAction stagedOrderRemoveItemShippingAddressAction = StagedOrderRemoveItemShippingAddressAction.builder()
.addressKey("{addressKey}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderRemoveItemShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderRemoveItemShippingAddressActioncreate builder for StagedOrderRemoveItemShippingAddressAction instancefactory method to create a deep copy of StagedOrderRemoveItemShippingAddressAction@NotNull String
key
of the Address to remove fromitemShippingAddresses
.of()
factory methodof
(StagedOrderRemoveItemShippingAddressAction template) factory method to create a shallow copy StagedOrderRemoveItemShippingAddressActionvoid
setAddressKey
(String addressKey) key
of the Address to remove fromitemShippingAddresses
.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderRemoveItemShippingAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderRemoveItemShippingAddressAction
(Function<StagedOrderRemoveItemShippingAddressAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
REMOVE_ITEM_SHIPPING_ADDRESS
discriminator value for StagedOrderRemoveItemShippingAddressAction- See Also:
-
-
Method Details
-
getAddressKey
key
of the Address to remove fromitemShippingAddresses
.- Returns:
- addressKey
-
setAddressKey
key
of the Address to remove fromitemShippingAddresses
.- Parameters:
addressKey
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderRemoveItemShippingAddressAction
-
of
static StagedOrderRemoveItemShippingAddressAction of(StagedOrderRemoveItemShippingAddressAction template) factory method to create a shallow copy StagedOrderRemoveItemShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderRemoveItemShippingAddressAction deepCopy(@Nullable StagedOrderRemoveItemShippingAddressAction template) factory method to create a deep copy of StagedOrderRemoveItemShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderRemoveItemShippingAddressAction- Returns:
- builder
-
builder
static StagedOrderRemoveItemShippingAddressActionBuilder builder(StagedOrderRemoveItemShippingAddressAction template) create builder for StagedOrderRemoveItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderRemoveItemShippingAddressAction
default <T> T withStagedOrderRemoveItemShippingAddressAction(Function<StagedOrderRemoveItemShippingAddressAction, 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<StagedOrderRemoveItemShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-