Interface GraphQLCountryNotConfiguredInStoreError
- All Superinterfaces:
GraphQLErrorObject
Returned when a Cart or an Order in a Store references a country that is not included in the countries configured for the Store.
The error is returned as a failed response to:
- Create Cart in Store request and Set Country update action on Carts.
- Create Cart in Store request and Set Country update action on My Carts.
- Create Order in Store from Cart and Create Order from Quote requests on Orders.
- Create Order in Store from Cart and Create Order from Quote requests on My Orders.
- Create Order by Import request on Order Import.
- Set Country update action on Order Edits.
Example to create an instance using the builder pattern
GraphQLCountryNotConfiguredInStoreError graphQLCountryNotConfiguredInStoreError = GraphQLCountryNotConfiguredInStoreError.builder()
.plusStoreCountries(storeCountriesBuilder -> storeCountriesBuilder)
.country("{country}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLCountryNotConfiguredInStoreError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLCountryNotConfiguredInStoreErrorcreate builder for GraphQLCountryNotConfiguredInStoreError instancecopyDeep()factory method to create a deep copy of GraphQLCountryNotConfiguredInStoreError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull StringThe country that is not configured for the Store but referenced on the Cart or Order.Countries configured for the Store.of()factory methodof(GraphQLCountryNotConfiguredInStoreError template) factory method to create a shallow copy GraphQLCountryNotConfiguredInStoreErrorvoidsetCountry(String country) The country that is not configured for the Store but referenced on the Cart or Order.voidsetStoreCountries(String... storeCountries) Countries configured for the Store.voidsetStoreCountries(List<String> storeCountries) Countries configured for the Store.static com.fasterxml.jackson.core.type.TypeReference<GraphQLCountryNotConfiguredInStoreError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithGraphQLCountryNotConfiguredInStoreError(Function<GraphQLCountryNotConfiguredInStoreError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
COUNTRY_NOT_CONFIGURED_IN_STORE
discriminator value for GraphQLCountryNotConfiguredInStoreError- 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
-
getStoreCountries
Countries configured for the Store.
- Returns:
- storeCountries
-
getCountry
The country that is not configured for the Store but referenced on the Cart or Order.
- Returns:
- country
-
setStoreCountries
Countries configured for the Store.
- Parameters:
storeCountries- values to be set
-
setStoreCountries
Countries configured for the Store.
- Parameters:
storeCountries- values to be set
-
setCountry
The country that is not configured for the Store but referenced on the Cart or Order.
- Parameters:
country- value to be set
-
of
factory method- Returns:
- instance of GraphQLCountryNotConfiguredInStoreError
-
of
factory method to create a shallow copy GraphQLCountryNotConfiguredInStoreError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLCountryNotConfiguredInStoreError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
deepCopy
@Nullable static GraphQLCountryNotConfiguredInStoreError deepCopy(@Nullable GraphQLCountryNotConfiguredInStoreError template) factory method to create a deep copy of GraphQLCountryNotConfiguredInStoreError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLCountryNotConfiguredInStoreError- Returns:
- builder
-
builder
static GraphQLCountryNotConfiguredInStoreErrorBuilder builder(GraphQLCountryNotConfiguredInStoreError template) create builder for GraphQLCountryNotConfiguredInStoreError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLCountryNotConfiguredInStoreError
default <T> T withGraphQLCountryNotConfiguredInStoreError(Function<GraphQLCountryNotConfiguredInStoreError, 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<GraphQLCountryNotConfiguredInStoreError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-