Class TaxRateImpl
java.lang.Object
com.commercetools.history.models.common.TaxRateImpl
- All Implemented Interfaces:
TaxRate,io.vrap.rmf.base.client.ModelBase
Shape of the value for addTaxRate and removeTaxRate actions
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanPercentage in the range of [0..1].Two-digit country code as per ISO 3166-1 alpha-2.getId()The ID is always set if the tax rate is part of a TaxCategory.getName()getState()The state in the countryinthashCode()voidPercentage in the range of [0..1].voidsetCountry(String country) Two-digit country code as per ISO 3166-1 alpha-2.voidThe ID is always set if the tax rate is part of a TaxCategory.voidsetIncludedInPrice(Boolean includedInPrice) set includedInPricevoidset namevoidThe state in the countryvoidsetSubRates(SubRate... subRates) set subRatesvoidsetSubRates(List<SubRate> subRates) set subRatestoString()Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionStringMethods inherited from interface com.commercetools.history.models.common.TaxRate
withTaxRate
-
Constructor Details
-
TaxRateImpl
public TaxRateImpl()create empty instance
-
-
Method Details
-
getId
The ID is always set if the tax rate is part of a TaxCategory. The external tax rates in a Cart do not contain an
id. -
getName
-
getAmount
Percentage in the range of [0..1]. The sum of the amounts of all
subRates, if there are any. -
getIncludedInPrice
- Specified by:
getIncludedInPricein interfaceTaxRate- Returns:
- includedInPrice
-
getCountry
Two-digit country code as per ISO 3166-1 alpha-2.
- Specified by:
getCountryin interfaceTaxRate- Returns:
- country
-
getState
The state in the country
-
getSubRates
- Specified by:
getSubRatesin interfaceTaxRate- Returns:
- subRates
-
setId
Description copied from interface:TaxRateThe ID is always set if the tax rate is part of a TaxCategory. The external tax rates in a Cart do not contain an
id. -
setName
Description copied from interface:TaxRateset name -
setAmount
Description copied from interface:TaxRatePercentage in the range of [0..1]. The sum of the amounts of all
subRates, if there are any. -
setIncludedInPrice
Description copied from interface:TaxRateset includedInPrice- Specified by:
setIncludedInPricein interfaceTaxRate- Parameters:
includedInPrice- value to be set
-
setCountry
Description copied from interface:TaxRateTwo-digit country code as per ISO 3166-1 alpha-2.
- Specified by:
setCountryin interfaceTaxRate- Parameters:
country- value to be set
-
setState
Description copied from interface:TaxRateThe state in the country
-
setSubRates
Description copied from interface:TaxRateset subRates- Specified by:
setSubRatesin interfaceTaxRate- Parameters:
subRates- values to be set
-
setSubRates
Description copied from interface:TaxRateset subRates- Specified by:
setSubRatesin interfaceTaxRate- Parameters:
subRates- values to be set
-
equals
-
hashCode
public int hashCode() -
toString
-