Interface StagedOrderSetBillingAddressAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
This action updates the billingAddress on the Order, but it does not change the billing address on the referenced Cart from which the Order is created.
Produces the Order Billing Address Set Message.
Example to create an instance using the builder pattern
StagedOrderSetBillingAddressAction stagedOrderSetBillingAddressAction = StagedOrderSetBillingAddressAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderSetBillingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderSetBillingAddressActionbuilder(StagedOrderSetBillingAddressAction template) create builder for StagedOrderSetBillingAddressAction instancecopyDeep()deepCopy(StagedOrderSetBillingAddressAction template) factory method to create a deep copy of StagedOrderSetBillingAddressAction@Valid BaseAddressValue to set.of()factory methodof(StagedOrderSetBillingAddressAction template) factory method to create a shallow copy StagedOrderSetBillingAddressActionvoidsetAddress(BaseAddress address) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetBillingAddressAction>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_BILLING_ADDRESS
discriminator value for StagedOrderSetBillingAddressAction- 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 StagedOrderSetBillingAddressAction
-
of
factory method to create a shallow copy StagedOrderSetBillingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderSetBillingAddressAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderSetBillingAddressAction deepCopy(@Nullable StagedOrderSetBillingAddressAction template) factory method to create a deep copy of StagedOrderSetBillingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetBillingAddressAction- Returns:
- builder
-
builder
static StagedOrderSetBillingAddressActionBuilder builder(StagedOrderSetBillingAddressAction template) create builder for StagedOrderSetBillingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetBillingAddressAction
default <T> T withStagedOrderSetBillingAddressAction(Function<StagedOrderSetBillingAddressAction, 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<StagedOrderSetBillingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-