Interface GraphQLCountryNotConfiguredInStoreError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLCountryNotConfiguredInStoreError extends 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 requests on Orders.
  • Create Order in Store from Cart requests on My Orders.
  • Create Order from Quote requests on Orders.
  • Create Order from Quote requests on My Orders.
  • Create Order by Import request on Order Import.
  • Set Country on Order Edits.

Example to create an instance using the builder pattern

     GraphQLCountryNotConfiguredInStoreError graphQLCountryNotConfiguredInStoreError = GraphQLCountryNotConfiguredInStoreError.builder()
             .plusStoreCountries(storeCountriesBuilder -> storeCountriesBuilder)
             .country("{country}")
             .build()
 
  • Field Details

    • COUNTRY_NOT_CONFIGURED_IN_STORE

      static final String COUNTRY_NOT_CONFIGURED_IN_STORE
      discriminator value for GraphQLCountryNotConfiguredInStoreError
      See Also:
  • Method Details