Interface OrderEditPreviewFailure
- All Superinterfaces:
OrderEditResult
Result of a failed application of stagedActions
to the Order. The data is calculated on the fly and is not queryable.
Example to create an instance using the builder pattern
OrderEditPreviewFailure orderEditPreviewFailure = OrderEditPreviewFailure.builder()
.plusErrors(errorsBuilder -> errorsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderEditPreviewFailure -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderEditPreviewFailurebuilder
(OrderEditPreviewFailure template) create builder for OrderEditPreviewFailure instancestatic OrderEditPreviewFailure
deepCopy
(OrderEditPreviewFailure template) factory method to create a deep copy of OrderEditPreviewFailure@NotNull @Valid List<ErrorObject>
Errors returned.static OrderEditPreviewFailure
of()
factory methodstatic OrderEditPreviewFailure
of
(OrderEditPreviewFailure template) factory method to create a shallow copy OrderEditPreviewFailurevoid
setErrors
(ErrorObject... errors) Errors returned.void
setErrors
(List<ErrorObject> errors) Errors returned.static com.fasterxml.jackson.core.type.TypeReference<OrderEditPreviewFailure>
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_FAILURE
discriminator value for OrderEditPreviewFailure- See Also:
-
-
Method Details
-
getErrors
Errors returned.
- Returns:
- errors
-
setErrors
Errors returned.
- Parameters:
errors
- values to be set
-
setErrors
Errors returned.
- Parameters:
errors
- values to be set
-
of
factory method- Returns:
- instance of OrderEditPreviewFailure
-
of
factory method to create a shallow copy OrderEditPreviewFailure- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderEditPreviewFailure- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderEditPreviewFailure- Returns:
- builder
-
builder
create builder for OrderEditPreviewFailure instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderEditPreviewFailure
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
-