Interface GraphQLMaxStoreReferencesReachedError
- All Superinterfaces:
GraphQLErrorObject
Returned when a Store cannot be added to a Cart Discount as the limit for Stores configured for a Cart Discount has been reached.
The error is returned as a failed response to:
- Create CartDiscount and Create CartDiscount in Store requests
- Add Store and Set Store update actions
Example to create an instance using the builder pattern
GraphQLMaxStoreReferencesReachedError graphQLMaxStoreReferencesReachedError = GraphQLMaxStoreReferencesReachedError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLMaxStoreReferencesReachedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLMaxStoreReferencesReachedErrorbuilder
(GraphQLMaxStoreReferencesReachedError template) create builder for GraphQLMaxStoreReferencesReachedError instancefactory method to create a deep copy of GraphQLMaxStoreReferencesReachedError@NotNull String
getCode()
Error identifier.of()
factory methodof
(GraphQLMaxStoreReferencesReachedError template) factory method to create a shallow copy GraphQLMaxStoreReferencesReachedErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLMaxStoreReferencesReachedError>
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
-
MAX_STORE_REFERENCES_REACHED
discriminator value for GraphQLMaxStoreReferencesReachedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
of
factory method- Returns:
- instance of GraphQLMaxStoreReferencesReachedError
-
of
factory method to create a shallow copy GraphQLMaxStoreReferencesReachedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLMaxStoreReferencesReachedError deepCopy(@Nullable GraphQLMaxStoreReferencesReachedError template) factory method to create a deep copy of GraphQLMaxStoreReferencesReachedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLMaxStoreReferencesReachedError- Returns:
- builder
-
builder
static GraphQLMaxStoreReferencesReachedErrorBuilder builder(GraphQLMaxStoreReferencesReachedError template) create builder for GraphQLMaxStoreReferencesReachedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLMaxStoreReferencesReachedError
default <T> T withGraphQLMaxStoreReferencesReachedError(Function<GraphQLMaxStoreReferencesReachedError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLMaxStoreReferencesReachedError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-