Interface OrderSetBillingAddressAction
- All Superinterfaces:
OrderUpdateAction,ResourceUpdateAction<OrderUpdateAction>
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
OrderSetBillingAddressAction orderSetBillingAddressAction = OrderSetBillingAddressAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderSetBillingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderSetBillingAddressActionbuilder(OrderSetBillingAddressAction template) create builder for OrderSetBillingAddressAction instancecopyDeep()static OrderSetBillingAddressActiondeepCopy(OrderSetBillingAddressAction template) factory method to create a deep copy of OrderSetBillingAddressAction@Valid BaseAddressValue to set.static OrderSetBillingAddressActionof()factory methodstatic OrderSetBillingAddressActionof(OrderSetBillingAddressAction template) factory method to create a shallow copy OrderSetBillingAddressActionvoidsetAddress(BaseAddress address) Value to set.static com.fasterxml.jackson.core.type.TypeReference<OrderSetBillingAddressAction>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
-
SET_BILLING_ADDRESS
discriminator value for OrderSetBillingAddressAction- 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 OrderSetBillingAddressAction
-
of
factory method to create a shallow copy OrderSetBillingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderSetBillingAddressAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
deepCopy
@Nullable static OrderSetBillingAddressAction deepCopy(@Nullable OrderSetBillingAddressAction template) factory method to create a deep copy of OrderSetBillingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetBillingAddressAction- Returns:
- builder
-
builder
create builder for OrderSetBillingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetBillingAddressAction
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
-