Interface ApprovalFlowRejectAction
- All Superinterfaces:
ApprovalFlowUpdateAction
This update action allows an Associate to reject an Approval Flow, setting its status to Rejected
. The process takes into account all Associate Roles held by the Associate, aligning with the matched Approval Rules and their respective approver hierarchies. Even a single rejection in the process will result in the rejection of the entire Approval Flow.
An Associate is eligible to reject only if their roles are within tiers of the Approval Rule hierarchy that are yet to be rejected. An Associate may alter a prior approval into a rejection.
Example to create an instance using the builder pattern
ApprovalFlowRejectAction approvalFlowRejectAction = ApprovalFlowRejectAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalFlowRejectActionbuilder
(ApprovalFlowRejectAction template) create builder for ApprovalFlowRejectAction instancestatic ApprovalFlowRejectAction
deepCopy
(ApprovalFlowRejectAction template) factory method to create a deep copy of ApprovalFlowRejectActionThe reason for the rejection of the Approval Flow.static ApprovalFlowRejectAction
of()
factory methodstatic ApprovalFlowRejectAction
of
(ApprovalFlowRejectAction template) factory method to create a shallow copy ApprovalFlowRejectActionvoid
The reason for the rejection of the Approval Flow.static com.fasterxml.jackson.core.type.TypeReference<ApprovalFlowRejectAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.approval_flow.ApprovalFlowUpdateAction
getAction, withApprovalFlowUpdateAction
-
Field Details
-
REJECT
discriminator value for ApprovalFlowRejectAction- See Also:
-
-
Method Details
-
getReason
String getReason()The reason for the rejection of the Approval Flow.
- Returns:
- reason
-
setReason
The reason for the rejection of the Approval Flow.
- Parameters:
reason
- value to be set
-
of
factory method- Returns:
- instance of ApprovalFlowRejectAction
-
of
factory method to create a shallow copy ApprovalFlowRejectAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ApprovalFlowRejectAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalFlowRejectAction- Returns:
- builder
-
builder
create builder for ApprovalFlowRejectAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalFlowRejectAction
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
-