Interface GraphQLAgentQuoteRequestCreationFailedError
- All Superinterfaces:
GraphQLErrorObject
Returned by a /responses request when the underlying Cart was created but the QuoteRequest could not be created from it, for example because the Cart has no verified Customer.
Example to create an instance using the builder pattern
GraphQLAgentQuoteRequestCreationFailedError graphQLAgentQuoteRequestCreationFailedError = GraphQLAgentQuoteRequestCreationFailedError.builder()
.cartId("{cartId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLAgentQuoteRequestCreationFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLAgentQuoteRequestCreationFailedErrorcreate builder for GraphQLAgentQuoteRequestCreationFailedError instancecopyDeep()factory method to create a deep copy of GraphQLAgentQuoteRequestCreationFailedError@NotNull Stringidof the orphaned Cart, for retry or cleanup.@NotNull StringgetCode()One of the error codes that is listed on the Errors page.of()factory methodfactory method to create a shallow copy GraphQLAgentQuoteRequestCreationFailedErrorvoididof the orphaned Cart, for retry or cleanup.static tools.jackson.core.type.TypeReference<GraphQLAgentQuoteRequestCreationFailedError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithGraphQLAgentQuoteRequestCreationFailedError(Function<GraphQLAgentQuoteRequestCreationFailedError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
QUOTE_REQUEST_CREATION_FAILED
discriminator value for GraphQLAgentQuoteRequestCreationFailedError- 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
-
getCartId
idof the orphaned Cart, for retry or cleanup.- Returns:
- cartId
-
setCartId
idof the orphaned Cart, for retry or cleanup.- Parameters:
cartId- value to be set
-
of
factory method- Returns:
- instance of GraphQLAgentQuoteRequestCreationFailedError
-
of
static GraphQLAgentQuoteRequestCreationFailedError of(GraphQLAgentQuoteRequestCreationFailedError template) factory method to create a shallow copy GraphQLAgentQuoteRequestCreationFailedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLAgentQuoteRequestCreationFailedError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
deepCopy
@Nullable static GraphQLAgentQuoteRequestCreationFailedError deepCopy(@Nullable GraphQLAgentQuoteRequestCreationFailedError template) factory method to create a deep copy of GraphQLAgentQuoteRequestCreationFailedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLAgentQuoteRequestCreationFailedError- Returns:
- builder
-
builder
static GraphQLAgentQuoteRequestCreationFailedErrorBuilder builder(GraphQLAgentQuoteRequestCreationFailedError template) create builder for GraphQLAgentQuoteRequestCreationFailedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLAgentQuoteRequestCreationFailedError
default <T> T withGraphQLAgentQuoteRequestCreationFailedError(Function<GraphQLAgentQuoteRequestCreationFailedError, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static tools.jackson.core.type.TypeReference<GraphQLAgentQuoteRequestCreationFailedError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-