Interface GraphQLMissingTaxRateForCountryError
- All Superinterfaces:
GraphQLErrorObject
- All Known Implementing Classes:
GraphQLMissingTaxRateForCountryErrorImpl
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.
Example to create an instance using the builder pattern
GraphQLMissingTaxRateForCountryError graphQLMissingTaxRateForCountryError = GraphQLMissingTaxRateForCountryError.builder()
.taxCategoryId("{taxCategoryId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLMissingTaxRateForCountryError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLMissingTaxRateForCountryErrorbuilder
(GraphQLMissingTaxRateForCountryError template) create builder for GraphQLMissingTaxRateForCountryError instancedeepCopy
(GraphQLMissingTaxRateForCountryError template) factory method to create a deep copy of GraphQLMissingTaxRateForCountryError@NotNull String
getCode()
Error identifier.Country code of the geographic location.getState()
State within the country, such as Texas in the United States.@NotNull String
Unique identifier of the TaxCategory.of()
factory methodof
(GraphQLMissingTaxRateForCountryError template) factory method to create a shallow copy GraphQLMissingTaxRateForCountryErrorvoid
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.static com.fasterxml.jackson.core.type.TypeReference<GraphQLMissingTaxRateForCountryError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
MISSING_TAX_RATE_FOR_COUNTRY
discriminator value for GraphQLMissingTaxRateForCountryError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getTaxCategoryId
Unique identifier of the TaxCategory.
- Returns:
- taxCategoryId
-
getCountry
Country code of the geographic location.
- Returns:
- country
-
getState
State within the country, such as Texas in the United States.
- Returns:
- state
-
setTaxCategoryId
Unique identifier of the TaxCategory.
- Parameters:
taxCategoryId
- value to be set
-
setCountry
Country code of the geographic location.
- Parameters:
country
- value to be set
-
setState
State within the country, such as Texas in the United States.
- Parameters:
state
- value to be set
-
of
factory method- Returns:
- instance of GraphQLMissingTaxRateForCountryError
-
of
factory method to create a shallow copy GraphQLMissingTaxRateForCountryError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLMissingTaxRateForCountryError deepCopy(@Nullable GraphQLMissingTaxRateForCountryError template) factory method to create a deep copy of GraphQLMissingTaxRateForCountryError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLMissingTaxRateForCountryError- Returns:
- builder
-
builder
static GraphQLMissingTaxRateForCountryErrorBuilder builder(GraphQLMissingTaxRateForCountryError template) create builder for GraphQLMissingTaxRateForCountryError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLMissingTaxRateForCountryError
default <T> T withGraphQLMissingTaxRateForCountryError(Function<GraphQLMissingTaxRateForCountryError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLMissingTaxRateForCountryError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-