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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for TaxCategoryAddTaxRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for TaxCategoryAddTaxRateActionbuilder(TaxCategoryAddTaxRateAction template) create builder for TaxCategoryAddTaxRateAction instancecopyDeep()static TaxCategoryAddTaxRateActiondeepCopy(TaxCategoryAddTaxRateAction template) factory method to create a deep copy of TaxCategoryAddTaxRateAction@NotNull @Valid TaxRateDraftValue to append to theratesarray.static TaxCategoryAddTaxRateActionof()factory methodstatic TaxCategoryAddTaxRateActionof(TaxCategoryAddTaxRateAction template) factory method to create a shallow copy TaxCategoryAddTaxRateActionvoidsetTaxRate(TaxRateDraft taxRate) Value to append to theratesarray.static com.fasterxml.jackson.core.type.TypeReference<TaxCategoryAddTaxRateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
ratesarray.- Returns:
- taxRate
-
setTaxRate
Value to append to the
ratesarray.- 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
-
copyDeep
TaxCategoryAddTaxRateAction copyDeep()- Specified by:
copyDeepin interfaceTaxCategoryUpdateAction
-
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
-