Interface StagedOrderSetShippingAddressAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
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
StagedOrderSetShippingAddressAction stagedOrderSetShippingAddressAction = StagedOrderSetShippingAddressAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderSetShippingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderSetShippingAddressActionbuilder(StagedOrderSetShippingAddressAction template) create builder for StagedOrderSetShippingAddressAction instancecopyDeep()deepCopy(StagedOrderSetShippingAddressAction template) factory method to create a deep copy of StagedOrderSetShippingAddressAction@Valid BaseAddressValue to set.of()factory methodof(StagedOrderSetShippingAddressAction template) factory method to create a shallow copy StagedOrderSetShippingAddressActionvoidsetAddress(BaseAddress address) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetShippingAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_SHIPPING_ADDRESS
discriminator value for StagedOrderSetShippingAddressAction- 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 StagedOrderSetShippingAddressAction
-
of
factory method to create a shallow copy StagedOrderSetShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderSetShippingAddressAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderSetShippingAddressAction deepCopy(@Nullable StagedOrderSetShippingAddressAction template) factory method to create a deep copy of StagedOrderSetShippingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetShippingAddressAction- Returns:
- builder
-
builder
static StagedOrderSetShippingAddressActionBuilder builder(StagedOrderSetShippingAddressAction template) create builder for StagedOrderSetShippingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetShippingAddressAction
default <T> T withStagedOrderSetShippingAddressAction(Function<StagedOrderSetShippingAddressAction, 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<StagedOrderSetShippingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-