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 instancestatic ExternalTaxAmountDraft
deepCopy
(ExternalTaxAmountDraft template) factory method to create a deep copy of ExternalTaxAmountDraft@NotNull @Valid ExternalTaxRateDraft
Tax Rates and subrates of states and countries.@NotNull @Valid Money
Total gross amount (totalNet
+taxPortions
) of the Line Item or Custom Line Item.static ExternalTaxAmountDraft
of()
factory methodstatic ExternalTaxAmountDraft
of
(ExternalTaxAmountDraft template) factory method to create a shallow copy ExternalTaxAmountDraftvoid
setTaxRate
(ExternalTaxRateDraft taxRate) Tax Rates and subrates of states and countries.void
setTotalGross
(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> T
accessor 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
-
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
-