Class GraphQLMissingTaxRateForCountryErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLMissingTaxRateForCountryErrorImpl
- All Implemented Interfaces:
GraphQLErrorObject
,GraphQLMissingTaxRateForCountryError
,io.vrap.rmf.base.client.ModelBase
public class GraphQLMissingTaxRateForCountryErrorImpl
extends Object
implements GraphQLMissingTaxRateForCountryError, 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.GraphQLMissingTaxRateForCountryError
MISSING_TAX_RATE_FOR_COUNTRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Country code of the geographic location.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
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.toString()
values()
Error-specific additional fields.Methods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface com.commercetools.api.models.error.GraphQLMissingTaxRateForCountryError
withGraphQLMissingTaxRateForCountryError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLMissingTaxRateForCountryErrorImpl
public GraphQLMissingTaxRateForCountryErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Specified by:
getCode
in interfaceGraphQLMissingTaxRateForCountryError
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getTaxCategoryId
Unique identifier of the TaxCategory.
- Specified by:
getTaxCategoryId
in interfaceGraphQLMissingTaxRateForCountryError
- Returns:
- taxCategoryId
-
getCountry
Country code of the geographic location.
- Specified by:
getCountry
in interfaceGraphQLMissingTaxRateForCountryError
- Returns:
- country
-
getState
State within the country, such as Texas in the United States.
- Specified by:
getState
in interfaceGraphQLMissingTaxRateForCountryError
- Returns:
- state
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setTaxCategoryId
Description copied from interface:GraphQLMissingTaxRateForCountryError
Unique identifier of the TaxCategory.
- Specified by:
setTaxCategoryId
in interfaceGraphQLMissingTaxRateForCountryError
- Parameters:
taxCategoryId
- value to be set
-
setCountry
Description copied from interface:GraphQLMissingTaxRateForCountryError
Country code of the geographic location.
- Specified by:
setCountry
in interfaceGraphQLMissingTaxRateForCountryError
- Parameters:
country
- value to be set
-
setState
Description copied from interface:GraphQLMissingTaxRateForCountryError
State within the country, such as Texas in the United States.
- Specified by:
setState
in interfaceGraphQLMissingTaxRateForCountryError
- Parameters:
state
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-