Interface GraphQLEditPreviewFailedError
- All Superinterfaces:
GraphQLErrorObject
Returned when a preview to find an appropriate Shipping Method for an OrderEdit could not be generated.
The error is returned as a failed response to the Get Shipping Methods for an OrderEdit request.
Example to create an instance using the builder pattern
GraphQLEditPreviewFailedError graphQLEditPreviewFailedError = GraphQLEditPreviewFailedError.builder()
.result(resultBuilder -> resultBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLEditPreviewFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLEditPreviewFailedErrorbuilder
(GraphQLEditPreviewFailedError template) create builder for GraphQLEditPreviewFailedError instancedeepCopy
(GraphQLEditPreviewFailedError template) factory method to create a deep copy of GraphQLEditPreviewFailedError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.@NotNull @Valid OrderEditPreviewFailure
State of the OrderEdit where thestagedActions
cannot be applied to the Order.of()
factory methodof
(GraphQLEditPreviewFailedError template) factory method to create a shallow copy GraphQLEditPreviewFailedErrorvoid
setResult
(OrderEditPreviewFailure result) State of the OrderEdit where thestagedActions
cannot be applied to the Order.static com.fasterxml.jackson.core.type.TypeReference<GraphQLEditPreviewFailedError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
EDIT_PREVIEW_FAILED
discriminator value for GraphQLEditPreviewFailedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getResult
State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Returns:
- result
-
setResult
State of the OrderEdit where the
stagedActions
cannot be applied to the Order.- Parameters:
result
- value to be set
-
of
factory method- Returns:
- instance of GraphQLEditPreviewFailedError
-
of
factory method to create a shallow copy GraphQLEditPreviewFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLEditPreviewFailedError deepCopy(@Nullable GraphQLEditPreviewFailedError template) factory method to create a deep copy of GraphQLEditPreviewFailedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLEditPreviewFailedError- Returns:
- builder
-
builder
create builder for GraphQLEditPreviewFailedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLEditPreviewFailedError
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
-