Interface GraphQLAgentOutOfScopeError
- All Superinterfaces:
GraphQLErrorObject
Returned by a /responses request when the input does not contain enough information to create a Cart or a Quote Request: no products, no customer email address, and no shipping country could be determined.
Example to create an instance using the builder pattern
GraphQLAgentOutOfScopeError graphQLAgentOutOfScopeError = GraphQLAgentOutOfScopeError.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLAgentOutOfScopeError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLAgentOutOfScopeErrorbuilder(GraphQLAgentOutOfScopeError template) create builder for GraphQLAgentOutOfScopeError instancecopyDeep()static GraphQLAgentOutOfScopeErrordeepCopy(GraphQLAgentOutOfScopeError template) factory method to create a deep copy of GraphQLAgentOutOfScopeError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.static GraphQLAgentOutOfScopeErrorof()factory methodstatic GraphQLAgentOutOfScopeErrorof(GraphQLAgentOutOfScopeError template) factory method to create a shallow copy GraphQLAgentOutOfScopeErrorstatic tools.jackson.core.type.TypeReference<GraphQLAgentOutOfScopeError>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
-
OUT_OF_SCOPE
discriminator value for GraphQLAgentOutOfScopeError- 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
-
of
factory method- Returns:
- instance of GraphQLAgentOutOfScopeError
-
of
factory method to create a shallow copy GraphQLAgentOutOfScopeError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLAgentOutOfScopeError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
deepCopy
@Nullable static GraphQLAgentOutOfScopeError deepCopy(@Nullable GraphQLAgentOutOfScopeError template) factory method to create a deep copy of GraphQLAgentOutOfScopeError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLAgentOutOfScopeError- Returns:
- builder
-
builder
create builder for GraphQLAgentOutOfScopeError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLAgentOutOfScopeError
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
-