Class GraphQLCountryNotConfiguredInStoreErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLCountryNotConfiguredInStoreErrorImpl
- All Implemented Interfaces:
GraphQLCountryNotConfiguredInStoreError
,GraphQLErrorObject
,io.vrap.rmf.base.client.ModelBase
public class GraphQLCountryNotConfiguredInStoreErrorImpl
extends Object
implements GraphQLCountryNotConfiguredInStoreError, io.vrap.rmf.base.client.ModelBase
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.GraphQLCountryNotConfiguredInStoreError
COUNTRY_NOT_CONFIGURED_IN_STORE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.The country that is not configured for the Store but referenced on the Cart or Order.Countries configured for the Store.int
hashCode()
void
setCountry
(String country) The country that is not configured for the Store but referenced on the Cart or Order.void
setStoreCountries
(String... storeCountries) Countries configured for the Store.void
setStoreCountries
(List<String> storeCountries) Countries configured for the Store.void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.GraphQLCountryNotConfiguredInStoreError
withGraphQLCountryNotConfiguredInStoreError
Methods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLCountryNotConfiguredInStoreErrorImpl
public GraphQLCountryNotConfiguredInStoreErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLCountryNotConfiguredInStoreError
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getStoreCountries
Countries configured for the Store.
- Specified by:
getStoreCountries
in interfaceGraphQLCountryNotConfiguredInStoreError
- Returns:
- storeCountries
-
getCountry
The country that is not configured for the Store but referenced on the Cart or Order.
- Specified by:
getCountry
in interfaceGraphQLCountryNotConfiguredInStoreError
- Returns:
- country
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setStoreCountries
Description copied from interface:GraphQLCountryNotConfiguredInStoreError
Countries configured for the Store.
- Specified by:
setStoreCountries
in interfaceGraphQLCountryNotConfiguredInStoreError
- Parameters:
storeCountries
- values to be set
-
setStoreCountries
Description copied from interface:GraphQLCountryNotConfiguredInStoreError
Countries configured for the Store.
- Specified by:
setStoreCountries
in interfaceGraphQLCountryNotConfiguredInStoreError
- Parameters:
storeCountries
- values to be set
-
setCountry
Description copied from interface:GraphQLCountryNotConfiguredInStoreError
The country that is not configured for the Store but referenced on the Cart or Order.
- Specified by:
setCountry
in interfaceGraphQLCountryNotConfiguredInStoreError
- Parameters:
country
- value to be set
-
equals
-
hashCode
public int hashCode()
-