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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLEditPreviewFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLEditPreviewFailedErrorbuilder(GraphQLEditPreviewFailedError template) create builder for GraphQLEditPreviewFailedError instancecopyDeep()deepCopy(GraphQLEditPreviewFailedError template) factory method to create a deep copy of GraphQLEditPreviewFailedError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull @Valid OrderEditPreviewFailureState of the OrderEdit where thestagedActionscannot be applied to the Order.of()factory methodof(GraphQLEditPreviewFailedError template) factory method to create a shallow copy GraphQLEditPreviewFailedErrorvoidsetResult(OrderEditPreviewFailure result) State of the OrderEdit where thestagedActionscannot be applied to the Order.static com.fasterxml.jackson.core.type.TypeReference<GraphQLEditPreviewFailedError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein interfaceGraphQLErrorObject- Returns:
- code
-
getResult
State of the OrderEdit where the
stagedActionscannot be applied to the Order.- Returns:
- result
-
setResult
State of the OrderEdit where the
stagedActionscannot 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
-
copyDeep
GraphQLEditPreviewFailedError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-