Package com.commercetools.api.models.me
Interface MyCartAddItemShippingAddressAction
- All Superinterfaces:
MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
Adds an address to a Cart when shipping to multiple addresses is desired.
Example to create an instance using the builder pattern
MyCartAddItemShippingAddressAction myCartAddItemShippingAddressAction = MyCartAddItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCartAddItemShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCartAddItemShippingAddressActionbuilder
(MyCartAddItemShippingAddressAction template) create builder for MyCartAddItemShippingAddressAction instancedeepCopy
(MyCartAddItemShippingAddressAction template) factory method to create a deep copy of MyCartAddItemShippingAddressAction@NotNull @Valid BaseAddress
Address to append toitemShippingAddresses
.of()
factory methodof
(MyCartAddItemShippingAddressAction template) factory method to create a shallow copy MyCartAddItemShippingAddressActionvoid
setAddress
(BaseAddress address) Address to append toitemShippingAddresses
.static com.fasterxml.jackson.core.type.TypeReference<MyCartAddItemShippingAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_ITEM_SHIPPING_ADDRESS
discriminator value for MyCartAddItemShippingAddressAction- See Also:
-
-
Method Details
-
getAddress
Address to append to
itemShippingAddresses
.The new address must have a key that is unique accross this Cart.
- Returns:
- address
-
setAddress
Address to append to
itemShippingAddresses
.The new address must have a key that is unique accross this Cart.
- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of MyCartAddItemShippingAddressAction
-
of
factory method to create a shallow copy MyCartAddItemShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyCartAddItemShippingAddressAction deepCopy(@Nullable MyCartAddItemShippingAddressAction template) factory method to create a deep copy of MyCartAddItemShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartAddItemShippingAddressAction- Returns:
- builder
-
builder
static MyCartAddItemShippingAddressActionBuilder builder(MyCartAddItemShippingAddressAction template) create builder for MyCartAddItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartAddItemShippingAddressAction
default <T> T withMyCartAddItemShippingAddressAction(Function<MyCartAddItemShippingAddressAction, 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<MyCartAddItemShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-