Interface OrderSetShippingAddressAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
This action updates the shippingAddress
on the Order, but it does not change the shipping address on the referenced Cart from which the Order is created. Also, it does not recalculate the Cart as taxes may not fit to the shipping address anymore.
Produces the Order Shipping Address Set Message.
Example to create an instance using the builder pattern
OrderSetShippingAddressAction orderSetShippingAddressAction = OrderSetShippingAddressAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderSetShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderSetShippingAddressActionbuilder
(OrderSetShippingAddressAction template) create builder for OrderSetShippingAddressAction instancedeepCopy
(OrderSetShippingAddressAction template) factory method to create a deep copy of OrderSetShippingAddressAction@Valid BaseAddress
Value to set.of()
factory methodof
(OrderSetShippingAddressAction template) factory method to create a shallow copy OrderSetShippingAddressActionvoid
setAddress
(BaseAddress address) Value to set.static com.fasterxml.jackson.core.type.TypeReference<OrderSetShippingAddressAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_SHIPPING_ADDRESS
discriminator value for OrderSetShippingAddressAction- See Also:
-
-
Method Details
-
getAddress
Value to set. If empty, any existing value is removed.
- Returns:
- address
-
setAddress
Value to set. If empty, any existing value is removed.
- Parameters:
address
- value to be set
-
of
factory method- Returns:
- instance of OrderSetShippingAddressAction
-
of
factory method to create a shallow copy OrderSetShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderSetShippingAddressAction deepCopy(@Nullable OrderSetShippingAddressAction template) factory method to create a deep copy of OrderSetShippingAddressAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetShippingAddressAction- Returns:
- builder
-
builder
create builder for OrderSetShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetShippingAddressAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-