Interface TaxCategoryAddTaxRateAction
- All Superinterfaces:
ResourceUpdateAction<TaxCategoryUpdateAction>
,TaxCategoryUpdateAction
TaxCategoryAddTaxRateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaxCategoryAddTaxRateAction taxCategoryAddTaxRateAction = TaxCategoryAddTaxRateAction.builder()
.taxRate(taxRateBuilder -> taxRateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for TaxCategoryAddTaxRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for TaxCategoryAddTaxRateActionbuilder
(TaxCategoryAddTaxRateAction template) create builder for TaxCategoryAddTaxRateAction instancestatic TaxCategoryAddTaxRateAction
deepCopy
(TaxCategoryAddTaxRateAction template) factory method to create a deep copy of TaxCategoryAddTaxRateAction@NotNull @Valid TaxRateDraft
Value to append to therates
array.static TaxCategoryAddTaxRateAction
of()
factory methodstatic TaxCategoryAddTaxRateAction
of
(TaxCategoryAddTaxRateAction template) factory method to create a shallow copy TaxCategoryAddTaxRateActionvoid
setTaxRate
(TaxRateDraft taxRate) Value to append to therates
array.static com.fasterxml.jackson.core.type.TypeReference<TaxCategoryAddTaxRateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.tax_category.TaxCategoryUpdateAction
getAction, withTaxCategoryUpdateAction
-
Field Details
-
ADD_TAX_RATE
discriminator value for TaxCategoryAddTaxRateAction- See Also:
-
-
Method Details
-
getTaxRate
Value to append to the
rates
array.- Returns:
- taxRate
-
setTaxRate
Value to append to the
rates
array.- Parameters:
taxRate
- value to be set
-
of
factory method- Returns:
- instance of TaxCategoryAddTaxRateAction
-
of
factory method to create a shallow copy TaxCategoryAddTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static TaxCategoryAddTaxRateAction deepCopy(@Nullable TaxCategoryAddTaxRateAction template) factory method to create a deep copy of TaxCategoryAddTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TaxCategoryAddTaxRateAction- Returns:
- builder
-
builder
create builder for TaxCategoryAddTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTaxCategoryAddTaxRateAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-