Interface ExternalTaxRateDraft
- All Superinterfaces:
Draft<ExternalTaxRateDraft>
ExternalTaxRateDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExternalTaxRateDraft externalTaxRateDraft = ExternalTaxRateDraft.builder()
.name("{name}")
.country("{country}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExternalTaxRateDraftBuilder
builder()
builder factory method for ExternalTaxRateDraftstatic ExternalTaxRateDraftBuilder
builder
(ExternalTaxRateDraft template) create builder for ExternalTaxRateDraft instancestatic ExternalTaxRateDraft
deepCopy
(ExternalTaxRateDraft template) factory method to create a deep copy of ExternalTaxRateDraft@NotNull String
@NotNull String
getName()
getState()
static ExternalTaxRateDraft
of()
factory methodstatic ExternalTaxRateDraft
of
(ExternalTaxRateDraft template) factory method to create a shallow copy ExternalTaxRateDraftvoid
set amountvoid
setCountry
(String country) set countryvoid
setIncludedInPrice
(Boolean includedInPrice) set includedInPricevoid
set namevoid
set statevoid
setSubRates
(SubRate... subRates) set subRatesvoid
setSubRates
(List<SubRate> subRates) set subRatesstatic com.fasterxml.jackson.core.type.TypeReference<ExternalTaxRateDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withExternalTaxRateDraft
(Function<ExternalTaxRateDraft, T> helper) accessor map function
-
Method Details
-
getName
- Returns:
- name
-
getAmount
Double getAmount()- Returns:
- amount
-
getCountry
- Returns:
- country
-
getState
String getState()- Returns:
- state
-
getSubRates
- Returns:
- subRates
-
getIncludedInPrice
Boolean getIncludedInPrice()- Returns:
- includedInPrice
-
setName
set name- Parameters:
name
- value to be set
-
setAmount
set amount- Parameters:
amount
- value to be set
-
setCountry
set country- Parameters:
country
- value to be set
-
setState
set state- Parameters:
state
- value to be set
-
setSubRates
set subRates- Parameters:
subRates
- values to be set
-
setSubRates
set subRates- Parameters:
subRates
- values to be set
-
setIncludedInPrice
set includedInPrice- Parameters:
includedInPrice
- value to be set
-
of
factory method- Returns:
- instance of ExternalTaxRateDraft
-
of
factory method to create a shallow copy ExternalTaxRateDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ExternalTaxRateDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExternalTaxRateDraft- Returns:
- builder
-
builder
create builder for ExternalTaxRateDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withExternalTaxRateDraft
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
-