Interface CartAddItemShippingAddressAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
Adds an address to a Cart when shipping to multiple addresses is desired.
Example to create an instance using the builder pattern
CartAddItemShippingAddressAction cartAddItemShippingAddressAction = CartAddItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartAddItemShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartAddItemShippingAddressActionbuilder(CartAddItemShippingAddressAction template) create builder for CartAddItemShippingAddressAction instancecopyDeep()deepCopy(CartAddItemShippingAddressAction template) factory method to create a deep copy of CartAddItemShippingAddressAction@NotNull @Valid BaseAddressAddress to append toitemShippingAddresses.of()factory methodof(CartAddItemShippingAddressAction template) factory method to create a shallow copy CartAddItemShippingAddressActionvoidsetAddress(BaseAddress address) Address to append toitemShippingAddresses.static com.fasterxml.jackson.core.type.TypeReference<CartAddItemShippingAddressAction>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
-
ADD_ITEM_SHIPPING_ADDRESS
discriminator value for CartAddItemShippingAddressAction- See Also:
-
-
Method Details
-
getAddress
Address to append to
itemShippingAddresses.The new Address must have a
keythat is unique across this Cart.- Returns:
- address
-
setAddress
Address to append to
itemShippingAddresses.The new Address must have a
keythat is unique across this Cart.- Parameters:
address- value to be set
-
of
factory method- Returns:
- instance of CartAddItemShippingAddressAction
-
of
factory method to create a shallow copy CartAddItemShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartAddItemShippingAddressAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartAddItemShippingAddressAction deepCopy(@Nullable CartAddItemShippingAddressAction template) factory method to create a deep copy of CartAddItemShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartAddItemShippingAddressAction- Returns:
- builder
-
builder
create builder for CartAddItemShippingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartAddItemShippingAddressAction
default <T> T withCartAddItemShippingAddressAction(Function<CartAddItemShippingAddressAction, 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<CartAddItemShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-