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 TaxCategoryDraftBuilder
builder()
builder factory method for TaxCategoryDraftstatic TaxCategoryDraftBuilder
builder
(TaxCategoryDraft template) create builder for TaxCategoryDraft instancestatic TaxCategoryDraft
deepCopy
(TaxCategoryDraft template) factory method to create a deep copy of TaxCategoryDraftDescription of the TaxCategory.getKey()
User-defined unique identifier for the TaxCategory.@NotNull String
getName()
Name of the TaxCategory.@Valid List<TaxRateDraft>
getRates()
Tax rates and subrates of states and countries.static TaxCategoryDraft
of()
factory methodstatic TaxCategoryDraft
of
(TaxCategoryDraft template) factory method to create a shallow copy TaxCategoryDraftvoid
setDescription
(String description) Description of the TaxCategory.void
User-defined unique identifier for the TaxCategory.void
Name of the TaxCategory.void
setRates
(TaxRateDraft... rates) Tax rates and subrates of states and countries.void
setRates
(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> T
withTaxCategoryDraft
(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
-
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
-