Interface StagedOrderSetBusinessUnitAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
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
StagedOrderSetBusinessUnitAction stagedOrderSetBusinessUnitAction = StagedOrderSetBusinessUnitAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetBusinessUnitAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetBusinessUnitActionbuilder
(StagedOrderSetBusinessUnitAction template) create builder for StagedOrderSetBusinessUnitAction instancedeepCopy
(StagedOrderSetBusinessUnitAction template) factory method to create a deep copy of StagedOrderSetBusinessUnitActionNew Business Unit to assign to the Order.of()
factory methodof
(StagedOrderSetBusinessUnitAction template) factory method to create a shallow copy StagedOrderSetBusinessUnitActionvoid
setBusinessUnit
(BusinessUnitResourceIdentifier businessUnit) New Business Unit to assign to the Order.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetBusinessUnitAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_BUSINESS_UNIT
discriminator value for StagedOrderSetBusinessUnitAction- 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 StagedOrderSetBusinessUnitAction
-
of
factory method to create a shallow copy StagedOrderSetBusinessUnitAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetBusinessUnitAction deepCopy(@Nullable StagedOrderSetBusinessUnitAction template) factory method to create a deep copy of StagedOrderSetBusinessUnitAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetBusinessUnitAction- Returns:
- builder
-
builder
create builder for StagedOrderSetBusinessUnitAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetBusinessUnitAction
default <T> T withStagedOrderSetBusinessUnitAction(Function<StagedOrderSetBusinessUnitAction, 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<StagedOrderSetBusinessUnitAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-