Interface OrderSetBusinessUnitAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
Updates the Business Unit on the Order. Setting the Order's businessUnit
does not recalculate prices or discounts on the Order.
Produces the OrderBusinessUnitSet Message.
Example to create an instance using the builder pattern
OrderSetBusinessUnitAction orderSetBusinessUnitAction = OrderSetBusinessUnitAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for OrderSetBusinessUnitAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderSetBusinessUnitActionbuilder
(OrderSetBusinessUnitAction template) create builder for OrderSetBusinessUnitAction instancestatic OrderSetBusinessUnitAction
deepCopy
(OrderSetBusinessUnitAction template) factory method to create a deep copy of OrderSetBusinessUnitActionNew Business Unit to assign to the Order.static OrderSetBusinessUnitAction
of()
factory methodstatic OrderSetBusinessUnitAction
of
(OrderSetBusinessUnitAction template) factory method to create a shallow copy OrderSetBusinessUnitActionvoid
setBusinessUnit
(BusinessUnitResourceIdentifier businessUnit) New Business Unit to assign to the Order.static com.fasterxml.jackson.core.type.TypeReference<OrderSetBusinessUnitAction>
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_BUSINESS_UNIT
discriminator value for OrderSetBusinessUnitAction- See Also:
-
-
Method Details
-
getBusinessUnit
New Business Unit to assign to the Order. If empty, any existing value is removed.
If the referenced Business Unit does not exist, a ReferencedResourceNotFound error is returned.
- Returns:
- businessUnit
-
setBusinessUnit
New Business Unit to assign to the Order. If empty, any existing value is removed.
If the referenced Business Unit does not exist, a ReferencedResourceNotFound error is returned.
- Parameters:
businessUnit
- value to be set
-
of
factory method- Returns:
- instance of OrderSetBusinessUnitAction
-
of
factory method to create a shallow copy OrderSetBusinessUnitAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderSetBusinessUnitAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetBusinessUnitAction- Returns:
- builder
-
builder
create builder for OrderSetBusinessUnitAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetBusinessUnitAction
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
-