com.avalara.avatax.services.tax
Class DocStatus

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

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

The document's status is returned in the GetTaxResult (except for DocStatus.Any) and indicates the state of the document in tax history.

See Also:
Serialized Form

Field Summary
static DocStatus Adjusted
           
static DocStatus Any
          Any status (used for searching)
static DocStatus Cancelled
          A committed document that has been cancelled.
static DocStatus Committed
          A posted document that has been committed.
static DocStatus Posted
          A posted document (not committed).
static DocStatus Saved
          A saved document (DocumentType was SalesInvoice, PurchaseInvoice, ReturnInvoice) ready to be posted.
static DocStatus Temporary
          A temporary document not saved (DocumentType was SalesOrder, PurchaseOrder, ReturnOrder)
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines whether the specified Object is equal to the current Object.
static DocStatus fromString(java.lang.String value)
           
static DocStatus 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)
          Get Axis Custom Deserializer; this method is used internally by the adapter and not intended to be used by external implementation code.
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.
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.
 java.lang.String getValue()
           
 int hashCode()
          Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 java.lang.Object readResolve()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Temporary

public static final DocStatus Temporary
A temporary document not saved (DocumentType was SalesOrder, PurchaseOrder, ReturnOrder)


Saved

public static final DocStatus Saved
A saved document (DocumentType was SalesInvoice, PurchaseInvoice, ReturnInvoice) ready to be posted.


Posted

public static final DocStatus Posted
A posted document (not committed). See TaxSvcSoap.postTax(com.avalara.avatax.services.tax.PostTaxRequest) for information on posting a document.


Committed

public static final DocStatus Committed
A posted document that has been committed. See TaxSvcSoap.commitTax(com.avalara.avatax.services.tax.CommitTaxRequest) for information on committing a document.


Cancelled

public static final DocStatus Cancelled
A committed document that has been cancelled. See TaxSvcSoap.cancelTax(com.avalara.avatax.services.tax.CancelTaxRequest) for information on cancelling a document.


Adjusted

public static final DocStatus Adjusted

Any

public static final DocStatus Any
Any status (used for searching)

Method Detail

getValue

public java.lang.String getValue()

fromValue

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

fromString

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

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()

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)
Get Axis Custom Serializer; this method is used internally by the adapter and not intended to be used by external implementation code.


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.


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.