Interface StagedOrderTransitionStateAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
If the existing State has set transitions
, there must be a direct transition to the new State. If transitions
is not set, no validation is performed.
This update action produces the Order State Transition Message.
Example to create an instance using the builder pattern
StagedOrderTransitionStateAction stagedOrderTransitionStateAction = StagedOrderTransitionStateAction.builder()
.state(stateBuilder -> stateBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderTransitionStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderTransitionStateActionbuilder
(StagedOrderTransitionStateAction template) create builder for StagedOrderTransitionStateAction instancedeepCopy
(StagedOrderTransitionStateAction template) factory method to create a deep copy of StagedOrderTransitionStateActiongetForce()
Set totrue
to turn off validation.@NotNull @Valid StateResourceIdentifier
getState()
Value to set.of()
factory methodof
(StagedOrderTransitionStateAction template) factory method to create a shallow copy StagedOrderTransitionStateActionvoid
Set totrue
to turn off validation.void
setState
(StateResourceIdentifier state) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderTransitionStateAction>
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
-
TRANSITION_STATE
discriminator value for StagedOrderTransitionStateAction- See Also:
-
-
Method Details
-
getState
Value to set. If there is no State yet, the new State must be an initial State.
- Returns:
- state
-
getForce
Boolean getForce()Set to
true
to turn off validation.- Returns:
- force
-
setState
Value to set. If there is no State yet, the new State must be an initial State.
- Parameters:
state
- value to be set
-
setForce
Set to
true
to turn off validation.- Parameters:
force
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderTransitionStateAction
-
of
factory method to create a shallow copy StagedOrderTransitionStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderTransitionStateAction deepCopy(@Nullable StagedOrderTransitionStateAction template) factory method to create a deep copy of StagedOrderTransitionStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderTransitionStateAction- Returns:
- builder
-
builder
create builder for StagedOrderTransitionStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderTransitionStateAction
default <T> T withStagedOrderTransitionStateAction(Function<StagedOrderTransitionStateAction, 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<StagedOrderTransitionStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-