Class ExternalTaxRateDraftImpl

java.lang.Object
com.commercetools.api.models.cart.ExternalTaxRateDraftImpl
All Implemented Interfaces:
ExternalTaxRateDraft, io.vrap.rmf.base.client.Draft<ExternalTaxRateDraft>, io.vrap.rmf.base.client.ModelBase

public class ExternalTaxRateDraftImpl extends Object implements ExternalTaxRateDraft, io.vrap.rmf.base.client.ModelBase

Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Percentage in the range of 0-1.
    Country for which the tax applies.
    If set to false, the related price is considered the net price and the provided amount is applied to calculate the gross price. If set to true, the related price is considered the gross price, and the provided amount is applied to calculate the net price.
    Name of the Tax Rate.
    State within the specified country.
    For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).
    int
     
    void
    setAmount(Double amount)
    Percentage in the range of 0-1.
    void
    setCountry(String country)
    Country for which the tax applies.
    void
    setIncludedInPrice(Boolean includedInPrice)
    If set to false, the related price is considered the net price and the provided amount is applied to calculate the gross price. If set to true, the related price is considered the gross price, and the provided amount is applied to calculate the net price.
    void
    Name of the Tax Rate.
    void
    State within the specified country.
    void
    setSubRates(SubRate... subRates)
    For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).
    void
    For countries (such as the US) where the total tax is a combination of multiple taxes (such as state and local taxes).

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.commercetools.api.models.cart.ExternalTaxRateDraft

    withExternalTaxRateDraft

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString