Class CountryNotConfiguredInStoreErrorImpl
java.lang.Object
com.commercetools.api.models.error.CountryNotConfiguredInStoreErrorImpl
- All Implemented Interfaces:
CountryNotConfiguredInStoreError
,ErrorObject
,io.vrap.rmf.base.client.ModelBase
public class CountryNotConfiguredInStoreErrorImpl
extends Object
implements CountryNotConfiguredInStoreError, 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.CountryNotConfiguredInStoreError
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."The country $country is not configured for the store $store."
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
setMessage
(String message) "The country $country is not configured for the store $store."
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.CountryNotConfiguredInStoreError
withCountryNotConfiguredInStoreError
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CountryNotConfiguredInStoreErrorImpl
public CountryNotConfiguredInStoreErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceCountryNotConfiguredInStoreError
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The country $country is not configured for the store $store."
- Specified by:
getMessage
in interfaceCountryNotConfiguredInStoreError
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getStoreCountries
Countries configured for the Store.
- Specified by:
getStoreCountries
in interfaceCountryNotConfiguredInStoreError
- Returns:
- storeCountries
-
getCountry
The country that is not configured for the Store but referenced on the Cart or Order.
- Specified by:
getCountry
in interfaceCountryNotConfiguredInStoreError
- Returns:
- country
-
setMessage
Description copied from interface:CountryNotConfiguredInStoreError
"The country $country is not configured for the store $store."
- Specified by:
setMessage
in interfaceCountryNotConfiguredInStoreError
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setStoreCountries
Description copied from interface:CountryNotConfiguredInStoreError
Countries configured for the Store.
- Specified by:
setStoreCountries
in interfaceCountryNotConfiguredInStoreError
- Parameters:
storeCountries
- values to be set
-
setStoreCountries
Description copied from interface:CountryNotConfiguredInStoreError
Countries configured for the Store.
- Specified by:
setStoreCountries
in interfaceCountryNotConfiguredInStoreError
- Parameters:
storeCountries
- values to be set
-
setCountry
Description copied from interface:CountryNotConfiguredInStoreError
The country that is not configured for the Store but referenced on the Cart or Order.
- Specified by:
setCountry
in interfaceCountryNotConfiguredInStoreError
- Parameters:
country
- value to be set
-
equals
-
hashCode
-