Interface ApprovalFlowApprovedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after an approval in the Approval Flow.
Example to create an instance using the builder pattern
ApprovalFlowApprovedMessagePayload approvalFlowApprovedMessagePayload = ApprovalFlowApprovedMessagePayload.builder()
.associate(associateBuilder -> associateBuilder)
.order(orderBuilder -> orderBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ApprovalFlowApprovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ApprovalFlowApprovedMessagePayloadbuilder
(ApprovalFlowApprovedMessagePayload template) create builder for ApprovalFlowApprovedMessagePayload instancedeepCopy
(ApprovalFlowApprovedMessagePayload template) factory method to create a deep copy of ApprovalFlowApprovedMessagePayload@NotNull @Valid CustomerReference
Reference to the Customer who approved the Approval Flow.@NotNull @Valid OrderReference
getOrder()
Reference to the Order that received the approval.of()
factory methodof
(ApprovalFlowApprovedMessagePayload template) factory method to create a shallow copy ApprovalFlowApprovedMessagePayloadvoid
setAssociate
(CustomerReference associate) Reference to the Customer who approved the Approval Flow.void
setOrder
(OrderReference order) Reference to the Order that received the approval.static com.fasterxml.jackson.core.type.TypeReference<ApprovalFlowApprovedMessagePayload>
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_APPROVED
discriminator value for ApprovalFlowApprovedMessagePayload- See Also:
-
-
Method Details
-
getAssociate
Reference to the Customer who approved the Approval Flow.
- Returns:
- associate
-
getOrder
Reference to the Order that received the approval.
- Returns:
- order
-
setAssociate
Reference to the Customer who approved the Approval Flow.
- Parameters:
associate
- value to be set
-
setOrder
Reference to the Order that received the approval.
- Parameters:
order
- value to be set
-
of
factory method- Returns:
- instance of ApprovalFlowApprovedMessagePayload
-
of
factory method to create a shallow copy ApprovalFlowApprovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ApprovalFlowApprovedMessagePayload deepCopy(@Nullable ApprovalFlowApprovedMessagePayload template) factory method to create a deep copy of ApprovalFlowApprovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ApprovalFlowApprovedMessagePayload- Returns:
- builder
-
builder
static ApprovalFlowApprovedMessagePayloadBuilder builder(ApprovalFlowApprovedMessagePayload template) create builder for ApprovalFlowApprovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withApprovalFlowApprovedMessagePayload
default <T> T withApprovalFlowApprovedMessagePayload(Function<ApprovalFlowApprovedMessagePayload, 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<ApprovalFlowApprovedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-