Interface CountryNotConfiguredInStoreError

All Superinterfaces:
ErrorObject
All Known Implementing Classes:
CountryNotConfiguredInStoreErrorImpl

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

     CountryNotConfiguredInStoreError countryNotConfiguredInStoreError = CountryNotConfiguredInStoreError.builder()
             .message("{message}")
             .plusStoreCountries(storeCountriesBuilder -> storeCountriesBuilder)
             .country("{country}")
             .build()