Class TaxCategoryDraftImpl
java.lang.Object
com.commercetools.api.models.tax_category.TaxCategoryDraftImpl
- All Implemented Interfaces:
TaxCategoryDraft
,WithKey
,io.vrap.rmf.base.client.Draft<TaxCategoryDraft>
,io.vrap.rmf.base.client.ModelBase
public class TaxCategoryDraftImpl
extends Object
implements TaxCategoryDraft, io.vrap.rmf.base.client.ModelBase
TaxCategoryDraft
-
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 TypeMethodDescriptionboolean
Description of the TaxCategory.getKey()
User-defined unique identifier for the TaxCategory.getName()
Name of the TaxCategory.getRates()
Tax rates and subrates of states and countries.int
hashCode()
void
setDescription
(String description) Description of the TaxCategory.void
User-defined unique identifier for the TaxCategory.void
Name of the TaxCategory.void
setRates
(TaxRateDraft... rates) Tax rates and subrates of states and countries.void
setRates
(List<TaxRateDraft> rates) Tax rates and subrates of states and countries.toString()
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.tax_category.TaxCategoryDraft
withTaxCategoryDraft
-
Constructor Details
-
TaxCategoryDraftImpl
public TaxCategoryDraftImpl()create empty instance
-
-
Method Details
-
getName
Name of the TaxCategory.
- Specified by:
getName
in interfaceTaxCategoryDraft
- Returns:
- name
-
getDescription
Description of the TaxCategory.
- Specified by:
getDescription
in interfaceTaxCategoryDraft
- Returns:
- description
-
getRates
Tax rates and subrates of states and countries.
- Specified by:
getRates
in interfaceTaxCategoryDraft
- Returns:
- rates
-
getKey
User-defined unique identifier for the TaxCategory.
- Specified by:
getKey
in interfaceTaxCategoryDraft
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setName
Description copied from interface:TaxCategoryDraft
Name of the TaxCategory.
- Specified by:
setName
in interfaceTaxCategoryDraft
- Parameters:
name
- value to be set
-
setDescription
Description copied from interface:TaxCategoryDraft
Description of the TaxCategory.
- Specified by:
setDescription
in interfaceTaxCategoryDraft
- Parameters:
description
- value to be set
-
setRates
Description copied from interface:TaxCategoryDraft
Tax rates and subrates of states and countries.
- Specified by:
setRates
in interfaceTaxCategoryDraft
- Parameters:
rates
- values to be set
-
setRates
Description copied from interface:TaxCategoryDraft
Tax rates and subrates of states and countries.
- Specified by:
setRates
in interfaceTaxCategoryDraft
- Parameters:
rates
- values to be set
-
setKey
Description copied from interface:TaxCategoryDraft
User-defined unique identifier for the TaxCategory.
- Specified by:
setKey
in interfaceTaxCategoryDraft
- Parameters:
key
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-