Class ExternalTaxAmountDraftImpl
java.lang.Object
com.commercetools.api.models.cart.ExternalTaxAmountDraftImpl
- All Implemented Interfaces:
ExternalTaxAmountDraft
,io.vrap.rmf.base.client.Draft<ExternalTaxAmountDraft>
,io.vrap.rmf.base.client.ModelBase
public class ExternalTaxAmountDraftImpl
extends Object
implements ExternalTaxAmountDraft, io.vrap.rmf.base.client.ModelBase
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tax Rates and subrates of states and countries.Total gross amount (totalNet
+taxPortions
) of the Line Item or Custom Line Item.int
hashCode()
void
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.toString()
Methods inherited from interface com.commercetools.api.models.cart.ExternalTaxAmountDraft
withExternalTaxAmountDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ExternalTaxAmountDraftImpl
public ExternalTaxAmountDraftImpl()create empty instance
-
-
Method Details
-
getTotalGross
Total gross amount (
totalNet
+taxPortions
) of the Line Item or Custom Line Item.- Specified by:
getTotalGross
in interfaceExternalTaxAmountDraft
- Returns:
- totalGross
-
getTaxRate
Tax Rates and subrates of states and countries.
- Specified by:
getTaxRate
in interfaceExternalTaxAmountDraft
- Returns:
- taxRate
-
setTotalGross
Description copied from interface:ExternalTaxAmountDraft
Total gross amount (
totalNet
+taxPortions
) of the Line Item or Custom Line Item.- Specified by:
setTotalGross
in interfaceExternalTaxAmountDraft
- Parameters:
totalGross
- value to be set
-
setTaxRate
Description copied from interface:ExternalTaxAmountDraft
Tax Rates and subrates of states and countries.
- Specified by:
setTaxRate
in interfaceExternalTaxAmountDraft
- Parameters:
taxRate
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-