Interface TaxCategoryReplaceTaxRateAction
- All Superinterfaces:
ResourceUpdateAction<TaxCategoryUpdateAction>
,TaxCategoryUpdateAction
TaxCategoryReplaceTaxRateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaxCategoryReplaceTaxRateAction taxCategoryReplaceTaxRateAction = TaxCategoryReplaceTaxRateAction.builder()
.taxRate(taxRateBuilder -> taxRateBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for TaxCategoryReplaceTaxRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for TaxCategoryReplaceTaxRateActionbuilder
(TaxCategoryReplaceTaxRateAction template) create builder for TaxCategoryReplaceTaxRateAction instancedeepCopy
(TaxCategoryReplaceTaxRateAction template) factory method to create a deep copy of TaxCategoryReplaceTaxRateAction@NotNull @Valid TaxRateDraft
New TaxRate to replace with.ID of the TaxRate to replace.Key of the TaxRate to replace.of()
factory methodof
(TaxCategoryReplaceTaxRateAction template) factory method to create a shallow copy TaxCategoryReplaceTaxRateActionvoid
setTaxRate
(TaxRateDraft taxRate) New TaxRate to replace with.void
setTaxRateId
(String taxRateId) ID of the TaxRate to replace.void
setTaxRateKey
(String taxRateKey) Key of the TaxRate to replace.static com.fasterxml.jackson.core.type.TypeReference<TaxCategoryReplaceTaxRateAction>
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
-
REPLACE_TAX_RATE
discriminator value for TaxCategoryReplaceTaxRateAction- See Also:
-
-
Method Details
-
getTaxRateId
String getTaxRateId()ID of the TaxRate to replace. Either
taxRateId
ortaxRateKey
is required for this update action.- Returns:
- taxRateId
-
getTaxRateKey
String getTaxRateKey()Key of the TaxRate to replace. Either
taxRateId
ortaxRateKey
is required for this update action.- Returns:
- taxRateKey
-
getTaxRate
New TaxRate to replace with.
- Returns:
- taxRate
-
setTaxRateId
ID of the TaxRate to replace. Either
taxRateId
ortaxRateKey
is required for this update action.- Parameters:
taxRateId
- value to be set
-
setTaxRateKey
Key of the TaxRate to replace. Either
taxRateId
ortaxRateKey
is required for this update action.- Parameters:
taxRateKey
- value to be set
-
setTaxRate
New TaxRate to replace with.
- Parameters:
taxRate
- value to be set
-
of
factory method- Returns:
- instance of TaxCategoryReplaceTaxRateAction
-
of
factory method to create a shallow copy TaxCategoryReplaceTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static TaxCategoryReplaceTaxRateAction deepCopy(@Nullable TaxCategoryReplaceTaxRateAction template) factory method to create a deep copy of TaxCategoryReplaceTaxRateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TaxCategoryReplaceTaxRateAction- Returns:
- builder
-
builder
create builder for TaxCategoryReplaceTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTaxCategoryReplaceTaxRateAction
default <T> T withTaxCategoryReplaceTaxRateAction(Function<TaxCategoryReplaceTaxRateAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<TaxCategoryReplaceTaxRateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-