com.avalara.avatax.services.tax
Class TaxDetail

java.lang.Object
  extended by com.avalara.avatax.services.tax.TaxDetail
All Implemented Interfaces:
java.io.Serializable

public class TaxDetail
extends java.lang.Object
implements java.io.Serializable

Holds calculated tax information by jurisdiction.

See Also:
ArrayOfTaxDetail, TaxLine, GetTaxResult, Serialized Form

Constructor Summary
TaxDetail()
          Initializes a new instance of the class.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines whether the specified Object is equal to the current Object.
 java.math.BigDecimal getBase()
          Deprecated. See getTaxable().
 java.lang.String getCountry()
          Gets the country value for this TaxDetail.
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Axis Custom Deserializer; this method is used internally by the adapter and not intended to be used by external implementation code.
 java.math.BigDecimal getExemption()
          The exempt amount.
 java.lang.String getJurisCode()
          Jurisdiction Code for the taxing jurisdiction.
 java.lang.String getJurisName()
          Gets the jurisdiction name for this TaxDetail.
 JurisdictionType getJurisType()
          Jurisdiction Type.
 java.math.BigDecimal getNonTaxable()
          The non-taxable amount.
 java.math.BigDecimal getRate()
          Gets the rate value for this TaxDetail.
 java.lang.String getRateType()
          Gets the rate type value for this TaxDetail.
 java.lang.String getRegion()
          Gets the region value for this TaxDetail.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Axis Custom Serializer; this method is used internally by the adapter and not intended to be used by external implementation code.
 java.math.BigDecimal getTax()
          The tax amount, i.e.
 java.math.BigDecimal getTaxable()
          The taxable amount.
 int getTaxAuthorityType()
          Gets the taxAuthorityType value for this TaxDetail.
 java.math.BigDecimal getTaxCalculated()
          Gets the taxCalculated value for this TaxDetail.
 java.lang.String getTaxGroup()
          Gets the taxGroup value for this TaxDetail.
 java.lang.String getTaxName()
          Gets the taxName value.
 TaxType getTaxType()
          Tax Type TypeDescription SSales Tax UUse Tax
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return Axis type metadata object; this method is used internally by the adapter and not intended to be used by external implementation code.
 int hashCode()
          Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 void setBase(java.math.BigDecimal base)
          Deprecated. See setTaxable(java.math.BigDecimal).
 void setCountry(java.lang.String country)
          Sets the country value for this TaxDetail.
 void setExemption(java.math.BigDecimal exemption)
          The exempt amount for this TaxDetail.
 void setJurisCode(java.lang.String jurisCode)
          Jurisdiction Code for the taxing jurisdiction.
 void setJurisName(java.lang.String jurisName)
          Sets the jurisdiction name.
 void setJurisType(JurisdictionType jurisType)
          Jurisdiction Type.
 void setNonTaxable(java.math.BigDecimal nonTaxable)
          The non-taxable amount.
 void setRate(java.math.BigDecimal rate)
          The tax rate, i.e.
 void setRateType(java.lang.String rateType)
          The tax rate type
 void setRegion(java.lang.String region)
          Sets the region value for this TaxDetail.
 void setTax(java.math.BigDecimal tax)
          The tax amount, i.e.
 void setTaxable(java.math.BigDecimal taxable)
          The taxable amount.
 void setTaxAuthorityType(int taxAuthorityType)
          Sets the taxAuthorityType value for this TaxDetail.
 void setTaxCalculated(java.math.BigDecimal taxCalculated)
          Sets the taxCalculated value for this TaxDetail.
 void setTaxGroup(java.lang.String taxGroup)
          Sets the taxGroup value for this TaxDetail.
 void setTaxName(java.lang.String taxName)
          Sets the taxName value.
 void setTaxType(TaxType taxType)
          Tax Type TypeDescription SSales Tax UUse Tax
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaxDetail

public TaxDetail()
Initializes a new instance of the class.

Method Detail

getCountry

public java.lang.String getCountry()
Gets the country value for this TaxDetail.

Returns:
country

setCountry

public void setCountry(java.lang.String country)
Sets the country value for this TaxDetail.

Parameters:
country -

getRegion

public java.lang.String getRegion()
Gets the region value for this TaxDetail.

Returns:
region

setRegion

public void setRegion(java.lang.String region)
Sets the region value for this TaxDetail.

Parameters:
region -

getJurisType

public JurisdictionType getJurisType()
Jurisdiction Type.

Returns:
jurisType

setJurisType

public void setJurisType(JurisdictionType jurisType)
Jurisdiction Type.

Parameters:
jurisType -

getJurisCode

public java.lang.String getJurisCode()
Jurisdiction Code for the taxing jurisdiction.

Returns:
jurisCode

setJurisCode

public void setJurisCode(java.lang.String jurisCode)
Jurisdiction Code for the taxing jurisdiction.

Parameters:
jurisCode -

getTaxType

public TaxType getTaxType()
Tax Type
TypeDescription
SSales Tax
UUse Tax

Returns:
taxType

setTaxType

public void setTaxType(TaxType taxType)
Tax Type
TypeDescription
SSales Tax
UUse Tax

Parameters:
taxType -

getBase

public java.math.BigDecimal getBase()
Deprecated. See getTaxable().

The tax base, i.e. the taxable amount.

Returns:
base

setBase

public void setBase(java.math.BigDecimal base)
Deprecated. See setTaxable(java.math.BigDecimal).

The tax base, i.e. the taxable amount.

Parameters:
base -

getTaxable

public java.math.BigDecimal getTaxable()
The taxable amount. Replaces getBase().

Returns:
taxable

setTaxable

public void setTaxable(java.math.BigDecimal taxable)
The taxable amount. Replaces setBase().

Parameters:
taxable -

getRate

public java.math.BigDecimal getRate()
Gets the rate value for this TaxDetail.

Returns:
rate

setRate

public void setRate(java.math.BigDecimal rate)
The tax rate, i.e. the rate of taxation (0.0 - 1.0)

Parameters:
rate -

getRateType

public java.lang.String getRateType()
Gets the rate type value for this TaxDetail.

Returns:
rateType

setRateType

public void setRateType(java.lang.String rateType)
The tax rate type

Parameters:
rateType -

getTax

public java.math.BigDecimal getTax()
The tax amount, i.e. the calculated tax (getBase() * getRate())

Returns:
tax

setTax

public void setTax(java.math.BigDecimal tax)
The tax amount, i.e. the calculated tax (getBase() * getRate())

Parameters:
tax -

getTaxCalculated

public java.math.BigDecimal getTaxCalculated()
Gets the taxCalculated value for this TaxDetail.

Returns:
taxCalculated

setTaxCalculated

public void setTaxCalculated(java.math.BigDecimal taxCalculated)
Sets the taxCalculated value for this TaxDetail.

Parameters:
taxCalculated -

getNonTaxable

public java.math.BigDecimal getNonTaxable()
The non-taxable amount.

Returns:
nonTaxable

setNonTaxable

public void setNonTaxable(java.math.BigDecimal nonTaxable)
The non-taxable amount.

Parameters:
nonTaxable -

getExemption

public java.math.BigDecimal getExemption()
The exempt amount.

Returns:
exemption

setExemption

public void setExemption(java.math.BigDecimal exemption)
The exempt amount for this TaxDetail.

Parameters:
exemption -

getJurisName

public java.lang.String getJurisName()
Gets the jurisdiction name for this TaxDetail.

Returns:
jurisName

setJurisName

public void setJurisName(java.lang.String jurisName)
Sets the jurisdiction name.

Parameters:
jurisName -

getTaxName

public java.lang.String getTaxName()
Gets the taxName value.

It further defines tax and jurisdiction..

Returns:
taxName

setTaxName

public void setTaxName(java.lang.String taxName)
Sets the taxName value.

It further defines tax and jurisdiction.

Parameters:
taxName -

getTaxAuthorityType

public int getTaxAuthorityType()
Gets the taxAuthorityType value for this TaxDetail.

Returns:
taxAuthorityType

setTaxAuthorityType

public void setTaxAuthorityType(int taxAuthorityType)
Sets the taxAuthorityType value for this TaxDetail.

Parameters:
taxAuthorityType -

setTaxGroup

public void setTaxGroup(java.lang.String taxGroup)
Sets the taxGroup value for this TaxDetail.

Parameters:
taxGroup -

getTaxGroup

public java.lang.String getTaxGroup()
Gets the taxGroup value for this TaxDetail.

Returns:
taxGroup

equals

public boolean equals(java.lang.Object obj)
Determines whether the specified Object is equal to the current Object. Note: In current implementation all Java Strings members of the two objects must be exactly alike, including in case, for equal to return true.

Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:
true or false, indicating if the two objects are equal.

hashCode

public int hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Overrides:
hashCode in class java.lang.Object
Returns:
hash code for this GetTaxRequest object
See Also:
Object.hashCode()

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return Axis type metadata object; this method is used internally by the adapter and not intended to be used by external implementation code.

Returns:
Type Description

getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Axis Custom Serializer; this method is used internally by the adapter and not intended to be used by external implementation code.

Parameters:
mechType -
_javaType -
_xmlType -
Returns:
Serializer

getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Axis Custom Deserializer; this method is used internally by the adapter and not intended to be used by external implementation code.

Parameters:
mechType -
_javaType -
_xmlType -
Returns:
Deserializer