Interface StagedOrderAddItemShippingAddressAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
Adds an address to an Order when shipping to multiple addresses is desired.
Example to create an instance using the builder pattern
StagedOrderAddItemShippingAddressAction stagedOrderAddItemShippingAddressAction = StagedOrderAddItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderAddItemShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderAddItemShippingAddressActioncreate builder for StagedOrderAddItemShippingAddressAction instancefactory method to create a deep copy of StagedOrderAddItemShippingAddressAction@NotNull @Valid BaseAddress
Address to append toitemShippingAddresses
.of()
factory methodof
(StagedOrderAddItemShippingAddressAction template) factory method to create a shallow copy StagedOrderAddItemShippingAddressActionvoid
setAddress
(BaseAddress address) Address to append toitemShippingAddresses
.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderAddItemShippingAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderAddItemShippingAddressAction
(Function<StagedOrderAddItemShippingAddressAction, 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
-
ADD_ITEM_SHIPPING_ADDRESS
discriminator value for StagedOrderAddItemShippingAddressAction- See Also:
-
-
Method Details
-
getAddress
Address to append to
itemShippingAddresses
. The new Address must have akey
that is unique across this Order.- Returns:
- address
-
setAddress
Address to append to
itemShippingAddresses
. The new Address must have akey
that is unique across this Order.- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderAddItemShippingAddressAction
-
of
factory method to create a shallow copy StagedOrderAddItemShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderAddItemShippingAddressAction deepCopy(@Nullable StagedOrderAddItemShippingAddressAction template) factory method to create a deep copy of StagedOrderAddItemShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderAddItemShippingAddressAction- Returns:
- builder
-
builder
static StagedOrderAddItemShippingAddressActionBuilder builder(StagedOrderAddItemShippingAddressAction template) create builder for StagedOrderAddItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderAddItemShippingAddressAction
default <T> T withStagedOrderAddItemShippingAddressAction(Function<StagedOrderAddItemShippingAddressAction, 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<StagedOrderAddItemShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-