Interface CartRemoveItemShippingAddressAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
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
CartRemoveItemShippingAddressAction cartRemoveItemShippingAddressAction = CartRemoveItemShippingAddressAction.builder()
.addressKey("{addressKey}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartRemoveItemShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartRemoveItemShippingAddressActionbuilder(CartRemoveItemShippingAddressAction template) create builder for CartRemoveItemShippingAddressAction instancecopyDeep()deepCopy(CartRemoveItemShippingAddressAction template) factory method to create a deep copy of CartRemoveItemShippingAddressAction@NotNull Stringkeyof the Address to remove fromitemShippingAddresses.of()factory methodof(CartRemoveItemShippingAddressAction template) factory method to create a shallow copy CartRemoveItemShippingAddressActionvoidsetAddressKey(String addressKey) keyof the Address to remove fromitemShippingAddresses.static com.fasterxml.jackson.core.type.TypeReference<CartRemoveItemShippingAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_ITEM_SHIPPING_ADDRESS
discriminator value for CartRemoveItemShippingAddressAction- 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 CartRemoveItemShippingAddressAction
-
of
factory method to create a shallow copy CartRemoveItemShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartRemoveItemShippingAddressAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartRemoveItemShippingAddressAction deepCopy(@Nullable CartRemoveItemShippingAddressAction template) factory method to create a deep copy of CartRemoveItemShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartRemoveItemShippingAddressAction- Returns:
- builder
-
builder
static CartRemoveItemShippingAddressActionBuilder builder(CartRemoveItemShippingAddressAction template) create builder for CartRemoveItemShippingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartRemoveItemShippingAddressAction
default <T> T withCartRemoveItemShippingAddressAction(Function<CartRemoveItemShippingAddressAction, 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<CartRemoveItemShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-