Interface ApprovalFlowCompletedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after an Approval Flow is completed and reaches a final status.
Example to create an instance using the builder pattern
ApprovalFlowCompletedMessagePayload approvalFlowCompletedMessagePayload = ApprovalFlowCompletedMessagePayload.builder()
.status(ApprovalFlowStatus.PENDING)
.order(orderBuilder -> orderBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalFlowCompletedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalFlowCompletedMessagePayloadbuilder
(ApprovalFlowCompletedMessagePayload template) create builder for ApprovalFlowCompletedMessagePayload instancedeepCopy
(ApprovalFlowCompletedMessagePayload template) factory method to create a deep copy of ApprovalFlowCompletedMessagePayload@NotNull @Valid OrderReference
getOrder()
Reference to the Order related to the completed Approval Flow.@NotNull ApprovalFlowStatus
Final status of the Approval Flow.of()
factory methodof
(ApprovalFlowCompletedMessagePayload template) factory method to create a shallow copy ApprovalFlowCompletedMessagePayloadvoid
setOrder
(OrderReference order) Reference to the Order related to the completed Approval Flow.void
setStatus
(ApprovalFlowStatus status) Final status of the Approval Flow.static com.fasterxml.jackson.core.type.TypeReference<ApprovalFlowCompletedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
APPROVAL_FLOW_COMPLETED
discriminator value for ApprovalFlowCompletedMessagePayload- See Also:
-
-
Method Details
-
getStatus
Final status of the Approval Flow.
- Returns:
- status
-
getOrder
Reference to the Order related to the completed Approval Flow.
- Returns:
- order
-
setStatus
Final status of the Approval Flow.
- Parameters:
status
- value to be set
-
setOrder
Reference to the Order related to the completed Approval Flow.
- Parameters:
order
- value to be set
-
of
factory method- Returns:
- instance of ApprovalFlowCompletedMessagePayload
-
of
factory method to create a shallow copy ApprovalFlowCompletedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalFlowCompletedMessagePayload deepCopy(@Nullable ApprovalFlowCompletedMessagePayload template) factory method to create a deep copy of ApprovalFlowCompletedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalFlowCompletedMessagePayload- Returns:
- builder
-
builder
static ApprovalFlowCompletedMessagePayloadBuilder builder(ApprovalFlowCompletedMessagePayload template) create builder for ApprovalFlowCompletedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalFlowCompletedMessagePayload
default <T> T withApprovalFlowCompletedMessagePayload(Function<ApprovalFlowCompletedMessagePayload, 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<ApprovalFlowCompletedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-