Interface GraphQLUnauthorizedError
- All Superinterfaces:
GraphQLErrorObject
Returned when one of the following conditions occurs:
- A Customer reference (for example,
associates[*].customerorinheritedAssociates[*].customer) is expanded on the My Business Unit endpoint. - A Cart Discount cannot be modified due to missing permissions for its assigned Stores.
Example to create an instance using the builder pattern
GraphQLUnauthorizedError graphQLUnauthorizedError = GraphQLUnauthorizedError.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLUnauthorizedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLUnauthorizedErrorbuilder(GraphQLUnauthorizedError template) create builder for GraphQLUnauthorizedError instancecopyDeep()static GraphQLUnauthorizedErrordeepCopy(GraphQLUnauthorizedError template) factory method to create a deep copy of GraphQLUnauthorizedError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.Keys of Stores for which the required permission to modify is missing.static GraphQLUnauthorizedErrorof()factory methodstatic GraphQLUnauthorizedErrorof(GraphQLUnauthorizedError template) factory method to create a shallow copy GraphQLUnauthorizedErrorvoidsetStoresWithoutPermission(String... storesWithoutPermission) Keys of Stores for which the required permission to modify is missing.voidsetStoresWithoutPermission(List<String> storesWithoutPermission) Keys of Stores for which the required permission to modify is missing.static tools.jackson.core.type.TypeReference<GraphQLUnauthorizedError>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
-
UNAUTHORIZED
discriminator value for GraphQLUnauthorizedError- 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
-
getStoresWithoutPermission
Keys of Stores for which the required permission to modify is missing.
This field is returned only for Cart Discounts.
- Returns:
- storesWithoutPermission
-
setStoresWithoutPermission
Keys of Stores for which the required permission to modify is missing.
This field is returned only for Cart Discounts.
- Parameters:
storesWithoutPermission- values to be set
-
setStoresWithoutPermission
Keys of Stores for which the required permission to modify is missing.
This field is returned only for Cart Discounts.
- Parameters:
storesWithoutPermission- values to be set
-
of
factory method- Returns:
- instance of GraphQLUnauthorizedError
-
of
factory method to create a shallow copy GraphQLUnauthorizedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLUnauthorizedError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
deepCopy
factory method to create a deep copy of GraphQLUnauthorizedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLUnauthorizedError- Returns:
- builder
-
builder
create builder for GraphQLUnauthorizedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLUnauthorizedError
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
-