Class MissingTaxRateForCountryErrorImpl
- All Implemented Interfaces:
ErrorObject
,MissingTaxRateForCountryError
,io.vrap.rmf.base.client.ModelBase
Returned when the Tax Category of at least one of the lineItems
, customLineItems
, or shippingInfo
in the Cart is missing the TaxRate matching country
and state
given in the shippingAddress
of that Cart.
The error is returned as a failed response to:
- Set Default Shipping Address, Add LineItem, Add CustomLineItem, Set Shipping Address, Add LineItem, Add LineItem, and Add CustomLineItem update actions
- Create Order from Cart and Create Order in Store from Cart requests.
-
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.MissingTaxRateForCountryError
MISSING_TAX_RATE_FOR_COUNTRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Country code of the geographic location."Tax category $taxCategoryId is missing a tax rate for country $countriesAndStates."
getState()
State within the country, such as Texas in the United States.Unique identifier of the TaxCategory.int
hashCode()
void
setCountry
(String country) Country code of the geographic location.void
setMessage
(String message) "Tax category $taxCategoryId is missing a tax rate for country $countriesAndStates."
void
State within the country, such as Texas in the United States.void
setTaxCategoryId
(String taxCategoryId) Unique identifier of the TaxCategory.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.ErrorObject
withErrorObject
Methods inherited from interface com.commercetools.api.models.error.MissingTaxRateForCountryError
withMissingTaxRateForCountryError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
MissingTaxRateForCountryErrorImpl
public MissingTaxRateForCountryErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceMissingTaxRateForCountryError
- Returns:
- code
-
getMessage
"Tax category $taxCategoryId is missing a tax rate for country $countriesAndStates."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceMissingTaxRateForCountryError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getTaxCategoryId
Unique identifier of the TaxCategory.
- Specified by:
getTaxCategoryId
in interfaceMissingTaxRateForCountryError
- Returns:
- taxCategoryId
-
getCountry
Country code of the geographic location.
- Specified by:
getCountry
in interfaceMissingTaxRateForCountryError
- Returns:
- country
-
getState
State within the country, such as Texas in the United States.
- Specified by:
getState
in interfaceMissingTaxRateForCountryError
- Returns:
- state
-
setMessage
Description copied from interface:MissingTaxRateForCountryError
"Tax category $taxCategoryId is missing a tax rate for country $countriesAndStates."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceMissingTaxRateForCountryError
- 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
-
setTaxCategoryId
Description copied from interface:MissingTaxRateForCountryError
Unique identifier of the TaxCategory.
- Specified by:
setTaxCategoryId
in interfaceMissingTaxRateForCountryError
- Parameters:
taxCategoryId
- value to be set
-
setCountry
Description copied from interface:MissingTaxRateForCountryError
Country code of the geographic location.
- Specified by:
setCountry
in interfaceMissingTaxRateForCountryError
- Parameters:
country
- value to be set
-
setState
Description copied from interface:MissingTaxRateForCountryError
State within the country, such as Texas in the United States.
- Specified by:
setState
in interfaceMissingTaxRateForCountryError
- Parameters:
state
- value to be set
-
equals
-
hashCode
-