Interface OrderAddItemShippingAddressAction
- All Superinterfaces:
OrderUpdateAction,ResourceUpdateAction<OrderUpdateAction>
Adds an address to the itemShippingAddresses of an Order. Use this action when shipping is defined per item. For example, when shipping items to multiple addresses or when using different Shipping Methods, even if all items share the same address.
Example to create an instance using the builder pattern
OrderAddItemShippingAddressAction orderAddItemShippingAddressAction = OrderAddItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderAddItemShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderAddItemShippingAddressActionbuilder(OrderAddItemShippingAddressAction template) create builder for OrderAddItemShippingAddressAction instancecopyDeep()deepCopy(OrderAddItemShippingAddressAction template) factory method to create a deep copy of OrderAddItemShippingAddressAction@NotNull @Valid BaseAddressAddress to append toitemShippingAddresses.of()factory methodof(OrderAddItemShippingAddressAction template) factory method to create a shallow copy OrderAddItemShippingAddressActionvoidsetAddress(BaseAddress address) Address to append toitemShippingAddresses.static com.fasterxml.jackson.core.type.TypeReference<OrderAddItemShippingAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_ITEM_SHIPPING_ADDRESS
discriminator value for OrderAddItemShippingAddressAction- See Also:
-
-
Method Details
-
getAddress
Address to append to
itemShippingAddresses. The new Address must have akeythat is unique across this Order.- Returns:
- address
-
setAddress
Address to append to
itemShippingAddresses. The new Address must have akeythat is unique across this Order.- Parameters:
address- value to be set
-
of
factory method- Returns:
- instance of OrderAddItemShippingAddressAction
-
of
factory method to create a shallow copy OrderAddItemShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderAddItemShippingAddressAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
deepCopy
@Nullable static OrderAddItemShippingAddressAction deepCopy(@Nullable OrderAddItemShippingAddressAction template) factory method to create a deep copy of OrderAddItemShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderAddItemShippingAddressAction- Returns:
- builder
-
builder
create builder for OrderAddItemShippingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderAddItemShippingAddressAction
default <T> T withOrderAddItemShippingAddressAction(Function<OrderAddItemShippingAddressAction, 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<OrderAddItemShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-