Interface OrderEditResult
- All Known Subinterfaces:
OrderEditApplied
,OrderEditNotProcessed
,OrderEditPreviewFailure
,OrderEditPreviewSuccess
public interface OrderEditResult
OrderEditResult
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
OrderEditResult orderEditResult = OrderEditResult.appliedBuilder()
appliedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
excerptBeforeEdit(excerptBeforeEditBuilder -> excerptBeforeEditBuilder)
excerptAfterEdit(excerptAfterEditBuilder -> excerptAfterEditBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderEditAppliedBuilder
builder for applied subtypestatic OrderEditResult
deepCopy
(OrderEditResult template) factory method to create a deep copy of OrderEditResult@NotNull String
getType()
static OrderEditNotProcessedBuilder
builder for notProcessed subtypebuilder for previewFailure subtypebuilder for previewSuccess subtypestatic com.fasterxml.jackson.core.type.TypeReference<OrderEditResult>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderEditResult
(Function<OrderEditResult, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
deepCopy
factory method to create a deep copy of OrderEditResult- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
appliedBuilder
builder for applied subtype- Returns:
- builder
-
notProcessedBuilder
builder for notProcessed subtype- Returns:
- builder
-
previewFailureBuilder
builder for previewFailure subtype- Returns:
- builder
-
previewSuccessBuilder
builder for previewSuccess subtype- Returns:
- builder
-
withOrderEditResult
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
-