Interface OrderEditPreviewSuccess
- All Superinterfaces:
OrderEditResult
The data is not persisted but is dynamically pulled by dry-running the update actions from stagedActions
on the current version of the related Order, not from the Order version at the time the OrderEdit was created. Therefore, it cannot be queried.
Example to create an instance using the builder pattern
OrderEditPreviewSuccess orderEditPreviewSuccess = OrderEditPreviewSuccess.builder()
.preview(previewBuilder -> previewBuilder)
.plusMessagePayloads(messagePayloadsBuilder -> messagePayloadsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderEditPreviewSuccess -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderEditPreviewSuccessbuilder
(OrderEditPreviewSuccess template) create builder for OrderEditPreviewSuccess instancestatic OrderEditPreviewSuccess
deepCopy
(OrderEditPreviewSuccess template) factory method to create a deep copy of OrderEditPreviewSuccess@NotNull @Valid List<MessagePayload>
Messages that will be generated if the edit is applied.@NotNull @Valid StagedOrder
A preview of the edited Order as it will be after allstagedActions
(incl.static OrderEditPreviewSuccess
of()
factory methodstatic OrderEditPreviewSuccess
of
(OrderEditPreviewSuccess template) factory method to create a shallow copy OrderEditPreviewSuccessvoid
setMessagePayloads
(MessagePayload... messagePayloads) Messages that will be generated if the edit is applied.void
setMessagePayloads
(List<MessagePayload> messagePayloads) Messages that will be generated if the edit is applied.void
setPreview
(StagedOrder preview) A preview of the edited Order as it will be after allstagedActions
(incl.static com.fasterxml.jackson.core.type.TypeReference<OrderEditPreviewSuccess>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order_edit.OrderEditResult
getType, withOrderEditResult
-
Field Details
-
PREVIEW_SUCCESS
discriminator value for OrderEditPreviewSuccess- See Also:
-
-
Method Details
-
getPreview
A preview of the edited Order as it will be after all
stagedActions
(incl. optional Order API Extensions) are applied.- Returns:
- preview
-
getMessagePayloads
Messages that will be generated if the edit is applied.
- Returns:
- messagePayloads
-
setPreview
A preview of the edited Order as it will be after all
stagedActions
(incl. optional Order API Extensions) are applied.- Parameters:
preview
- value to be set
-
setMessagePayloads
Messages that will be generated if the edit is applied.
- Parameters:
messagePayloads
- values to be set
-
setMessagePayloads
Messages that will be generated if the edit is applied.
- Parameters:
messagePayloads
- values to be set
-
of
factory method- Returns:
- instance of OrderEditPreviewSuccess
-
of
factory method to create a shallow copy OrderEditPreviewSuccess- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderEditPreviewSuccess- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderEditPreviewSuccess- Returns:
- builder
-
builder
create builder for OrderEditPreviewSuccess instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderEditPreviewSuccess
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
-