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