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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for TaxCategoryReplaceTaxRateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for TaxCategoryReplaceTaxRateActionbuilder(TaxCategoryReplaceTaxRateAction template) create builder for TaxCategoryReplaceTaxRateAction instancecopyDeep()deepCopy(TaxCategoryReplaceTaxRateAction template) factory method to create a deep copy of TaxCategoryReplaceTaxRateAction@NotNull @Valid TaxRateDraftNew 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 TaxCategoryReplaceTaxRateActionvoidsetTaxRate(TaxRateDraft taxRate) New TaxRate to replace with.voidsetTaxRateId(String taxRateId) ID of the TaxRate to replace.voidsetTaxRateKey(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> 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
-
REPLACE_TAX_RATE
discriminator value for TaxCategoryReplaceTaxRateAction- See Also:
-
-
Method Details
-
getTaxRateId
String getTaxRateId()ID of the TaxRate to replace. Either
taxRateIdortaxRateKeyis required for this update action.- Returns:
- taxRateId
-
getTaxRateKey
String getTaxRateKey()Key of the TaxRate to replace. Either
taxRateIdortaxRateKeyis required for this update action.- Returns:
- taxRateKey
-
getTaxRate
New TaxRate to replace with.
- Returns:
- taxRate
-
setTaxRateId
ID of the TaxRate to replace. Either
taxRateIdortaxRateKeyis required for this update action.- Parameters:
taxRateId- value to be set
-
setTaxRateKey
Key of the TaxRate to replace. Either
taxRateIdortaxRateKeyis 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
-
copyDeep
TaxCategoryReplaceTaxRateAction copyDeep()- Specified by:
copyDeepin interfaceTaxCategoryUpdateAction
-
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
-