Interface TaxCategoryDraft
- All Superinterfaces:
Draft<TaxCategoryDraft>,WithKey
TaxCategoryDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
TaxCategoryDraft taxCategoryDraft = TaxCategoryDraft.builder()
.name("{name}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic TaxCategoryDraftBuilderbuilder()builder factory method for TaxCategoryDraftstatic TaxCategoryDraftBuilderbuilder(TaxCategoryDraft template) create builder for TaxCategoryDraft instancecopyDeep()static TaxCategoryDraftdeepCopy(TaxCategoryDraft template) factory method to create a deep copy of TaxCategoryDraftDescription of the TaxCategory.getKey()User-defined unique identifier for the TaxCategory.@NotNull StringgetName()Name of the TaxCategory.@Valid List<TaxRateDraft>getRates()Tax rates and subrates of states and countries.static TaxCategoryDraftof()factory methodstatic TaxCategoryDraftof(TaxCategoryDraft template) factory method to create a shallow copy TaxCategoryDraftvoidsetDescription(String description) Description of the TaxCategory.voidUser-defined unique identifier for the TaxCategory.voidName of the TaxCategory.voidsetRates(TaxRateDraft... rates) Tax rates and subrates of states and countries.voidsetRates(List<TaxRateDraft> rates) Tax rates and subrates of states and countries.static com.fasterxml.jackson.core.type.TypeReference<TaxCategoryDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTaxCategoryDraft(Function<TaxCategoryDraft, T> helper) accessor map function
-
Method Details
-
getName
Name of the TaxCategory.
- Returns:
- name
-
getDescription
String getDescription()Description of the TaxCategory.
- Returns:
- description
-
getRates
Tax rates and subrates of states and countries.
- Returns:
- rates
-
getKey
String getKey()User-defined unique identifier for the TaxCategory.
-
setName
Name of the TaxCategory.
- Parameters:
name- value to be set
-
setDescription
Description of the TaxCategory.
- Parameters:
description- value to be set
-
setRates
Tax rates and subrates of states and countries.
- Parameters:
rates- values to be set
-
setRates
Tax rates and subrates of states and countries.
- Parameters:
rates- values to be set
-
setKey
User-defined unique identifier for the TaxCategory.
- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of TaxCategoryDraft
-
of
factory method to create a shallow copy TaxCategoryDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TaxCategoryDraft copyDeep() -
deepCopy
factory method to create a deep copy of TaxCategoryDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TaxCategoryDraft- Returns:
- builder
-
builder
create builder for TaxCategoryDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTaxCategoryDraft
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
-