Interface ExternalTaxAmountDraft
- All Superinterfaces:
Draft<ExternalTaxAmountDraft>
Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
Example to create an instance using the builder pattern
ExternalTaxAmountDraft externalTaxAmountDraft = ExternalTaxAmountDraft.builder()
.totalGross(totalGrossBuilder -> totalGrossBuilder)
.taxRate(taxRateBuilder -> taxRateBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ExternalTaxAmountDraftbuilder(ExternalTaxAmountDraft template) create builder for ExternalTaxAmountDraft instancecopyDeep()static ExternalTaxAmountDraftdeepCopy(ExternalTaxAmountDraft template) factory method to create a deep copy of ExternalTaxAmountDraft@NotNull @Valid ExternalTaxRateDraftTax Rates and subrates of states and countries.@NotNull @Valid MoneyTotal gross amount (totalNet+taxPortions) of the Line Item or Custom Line Item.static ExternalTaxAmountDraftof()factory methodstatic ExternalTaxAmountDraftof(ExternalTaxAmountDraft template) factory method to create a shallow copy ExternalTaxAmountDraftvoidsetTaxRate(ExternalTaxRateDraft taxRate) Tax Rates and subrates of states and countries.voidsetTotalGross(Money totalGross) Total gross amount (totalNet+taxPortions) of the Line Item or Custom Line Item.static com.fasterxml.jackson.core.type.TypeReference<ExternalTaxAmountDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getTotalGross
Total gross amount (
totalNet+taxPortions) of the Line Item or Custom Line Item.- Returns:
- totalGross
-
getTaxRate
Tax Rates and subrates of states and countries.
- Returns:
- taxRate
-
setTotalGross
Total gross amount (
totalNet+taxPortions) of the Line Item or Custom Line Item.- Parameters:
totalGross- value to be set
-
setTaxRate
Tax Rates and subrates of states and countries.
- Parameters:
taxRate- value to be set
-
of
factory method- Returns:
- instance of ExternalTaxAmountDraft
-
of
factory method to create a shallow copy ExternalTaxAmountDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ExternalTaxAmountDraft copyDeep() -
deepCopy
factory method to create a deep copy of ExternalTaxAmountDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ExternalTaxAmountDraft- Returns:
- builder
-
builder
create builder for ExternalTaxAmountDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withExternalTaxAmountDraft
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
-