com.avalara.avatax.services.tax
Class TaxOverride

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

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

See Also:
Serialized Form

Constructor Summary
TaxOverride()
           
TaxOverride(TaxOverrideType taxOverrideType, java.math.BigDecimal taxAmount, java.util.Date taxDate, java.lang.String reason)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Deserializer
 java.lang.String getReason()
          Gets the reason value for this TaxOverride.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Serializer
 java.math.BigDecimal getTaxAmount()
          Gets the taxAmount value for this TaxOverride.
 java.util.Date getTaxDate()
          Gets the taxDate value for this TaxOverride.
 TaxOverrideType getTaxOverrideType()
          Gets the taxOverrideType value for this TaxOverride.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setReason(java.lang.String reason)
          Sets the reason value for this TaxOverride.
 void setTaxAmount(java.math.BigDecimal taxAmount)
          Sets the taxAmount value for this TaxOverride.
 void setTaxDate(java.util.Date taxDate)
          Sets the taxDate value for this TaxOverride.
 void setTaxOverrideType(TaxOverrideType taxOverrideType)
          Sets the taxOverrideType value for this TaxOverride.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaxOverride

public TaxOverride()

TaxOverride

public TaxOverride(TaxOverrideType taxOverrideType,
                   java.math.BigDecimal taxAmount,
                   java.util.Date taxDate,
                   java.lang.String reason)
Method Detail

getTaxOverrideType

public TaxOverrideType getTaxOverrideType()
Gets the taxOverrideType value for this TaxOverride.

Returns:
taxOverrideType

setTaxOverrideType

public void setTaxOverrideType(TaxOverrideType taxOverrideType)
Sets the taxOverrideType value for this TaxOverride.

Reason for applying TaxOverride

Parameters:
taxOverrideType -

getTaxAmount

public java.math.BigDecimal getTaxAmount()
Gets the taxAmount value for this TaxOverride.

Returns:
taxAmount

setTaxAmount

public void setTaxAmount(java.math.BigDecimal taxAmount)
Sets the taxAmount value for this TaxOverride.

The TaxAmount overrides the total tax for the document.

Parameters:
taxAmount -

getTaxDate

public java.util.Date getTaxDate()
Gets the taxDate value for this TaxOverride.

Returns:
taxDate

setTaxDate

public void setTaxDate(java.util.Date taxDate)
Sets the taxDate value for this TaxOverride.

The TaxDate overrides the DocDate as the effective date used for tax calculation.

Parameters:
taxDate -

getReason

public java.lang.String getReason()
Gets the reason value for this TaxOverride.

Returns:
reason

setReason

public void setReason(java.lang.String reason)
Sets the reason value for this TaxOverride.

Type of tax override.

Also See TaxOverrideType

Parameters:
reason -

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Custom Deserializer