Class MissingTaxRateForCountryErrorBuilder
java.lang.Object
com.commercetools.api.models.error.MissingTaxRateForCountryErrorBuilder
- All Implemented Interfaces:
Builder<MissingTaxRateForCountryError>
public class MissingTaxRateForCountryErrorBuilder
extends Object
implements Builder<MissingTaxRateForCountryError>
MissingTaxRateForCountryErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MissingTaxRateForCountryError missingTaxRateForCountryError = MissingTaxRateForCountryError.builder()
.message("{message}")
.taxCategoryId("{taxCategoryId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds MissingTaxRateForCountryError with checking for non-null required valuesbuilds MissingTaxRateForCountryError without checking for non-null required valuesCountry code of the geographic location.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.Error-specific additional fields."Tax category $taxCategoryId is missing a tax rate for country $countriesAndStates."
of()
factory method for an instance of MissingTaxRateForCountryErrorBuilderof
(MissingTaxRateForCountryError template) create builder for MissingTaxRateForCountryError instanceState within the country, such as Texas in the United States.taxCategoryId
(String taxCategoryId) Unique identifier of the TaxCategory.Error-specific additional fields.
-
Constructor Details
-
MissingTaxRateForCountryErrorBuilder
public MissingTaxRateForCountryErrorBuilder()
-
-
Method Details
-
message
"Tax category $taxCategoryId is missing a tax rate for country $countriesAndStates."
- Parameters:
message
- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
taxCategoryId
Unique identifier of the TaxCategory.
- Parameters:
taxCategoryId
- value to be set- Returns:
- Builder
-
country
Country code of the geographic location.
- Parameters:
country
- value to be set- Returns:
- Builder
-
state
State within the country, such as Texas in the United States.
- Parameters:
state
- value to be set- Returns:
- Builder
-
getMessage
"Tax category $taxCategoryId is missing a tax rate for country $countriesAndStates."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
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
-
build
builds MissingTaxRateForCountryError with checking for non-null required values- Specified by:
build
in interfaceBuilder<MissingTaxRateForCountryError>
- Returns:
- MissingTaxRateForCountryError
-
buildUnchecked
builds MissingTaxRateForCountryError without checking for non-null required values- Returns:
- MissingTaxRateForCountryError
-
of
factory method for an instance of MissingTaxRateForCountryErrorBuilder- Returns:
- builder
-
of
create builder for MissingTaxRateForCountryError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-