com.avalara.avatax.services.tax
Class ServiceMode

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

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

Specifies the type of tax override. This is only supported by AvaLocal servers. It provides the ability to controls whether tax is calculated locally or remotely when using an AvaLocal server. The default is Automatic which calculates locally unless remote is necessary for non-local addresses See GetTaxRequest.

See Also:
Serialized Form

Field Summary
static java.lang.String _Automatic
           
static java.lang.String _Local
           
static java.lang.String _Remote
           
static ServiceMode Automatic
          Automated handling by local and/or remote server.
static ServiceMode Local
          AvaLocal server only.
static ServiceMode Remote
          All lines are calculated by AvaTax remote server.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static ServiceMode fromString(java.lang.String value)
           
static ServiceMode fromValue(java.lang.String value)
           
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
           
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
           
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 java.lang.String getValue()
           
 int hashCode()
           
 java.lang.Object readResolve()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_Automatic

public static final java.lang.String _Automatic
See Also:
Constant Field Values

_Local

public static final java.lang.String _Local
See Also:
Constant Field Values

_Remote

public static final java.lang.String _Remote
See Also:
Constant Field Values

Automatic

public static final ServiceMode Automatic
Automated handling by local and/or remote server.


Local

public static final ServiceMode Local
AvaLocal server only. Lines requiring remote will not be calculated.


Remote

public static final ServiceMode Remote
All lines are calculated by AvaTax remote server.

Method Detail

getValue

public java.lang.String getValue()

fromValue

public static ServiceMode fromValue(java.lang.String value)
                             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

fromString

public static ServiceMode fromString(java.lang.String value)
                              throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

readResolve

public java.lang.Object readResolve()
                             throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException

getSerializer

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

getDeserializer

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

getTypeDesc

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