com.avalara.avatax.services.tax
Class CancelTaxRequest

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

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

Data to pass to TaxSvcSoap.cancelTax(com.avalara.avatax.services.tax.CancelTaxRequest) indicating the document that should be cancelled and the reason for the operation.

A document can be indicated solely by the getDocId() if it is known. Otherwise the request must specify all of getCompanyCode(), getDocCode(), and getDocType() in order to uniquely identify the document.

See Also:
CancelTaxResult, Serialized Form

Constructor Summary
CancelTaxRequest()
          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.
 CancelCode getCancelCode()
          A code indicating the reason the document is getting canceled.
 java.lang.String getCompanyCode()
          Gets the client application company reference code.
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.lang.String getDocCode()
          The internal reference code used by the client application.
 java.lang.String getDocId()
          A unique Document ID.
 DocumentType getDocType()
          The original document's type, such as Sales Invoice or Purchase Invoice.
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.
 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 setCancelCode(CancelCode cancelCode)
          A code indicating the reason the document is getting canceled.
 void setCompanyCode(java.lang.String companyCode)
          Sets the client application company reference code.
 void setDocCode(java.lang.String docCode)
          The internal reference code used by the client application.
 void setDocId(java.lang.String docId)
          A unique Document ID.
 void setDocType(DocumentType docType)
          The original document's type, such as Sales Invoice or Purchase Invoice.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelTaxRequest

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

Method Detail

getDocId

public java.lang.String getDocId()
A unique Document ID.

This is a unique AvaTax identifier for this document. If known, the CompanyCode, DocCode, and DocType are not needed.

Returns:
docId
See Also:
GetTaxResult.getDocId()

setDocId

public void setDocId(java.lang.String docId)
A unique Document ID.

This is a unique AvaTax identifier for this document. If known, the CompanyCode, DocCode, and DocType are not needed.

Parameters:
docId -
See Also:
GetTaxResult.getDocId()

getCompanyCode

public java.lang.String getCompanyCode()
Gets the client application company reference code.
If docId is specified, this is not needed.

Returns:
companyCode

setCompanyCode

public void setCompanyCode(java.lang.String companyCode)
Sets the client application company reference code.
If docId is specified, this is not needed.

Parameters:
companyCode -

getDocType

public DocumentType getDocType()
The original document's type, such as Sales Invoice or Purchase Invoice.

Returns:
docType

setDocType

public void setDocType(DocumentType docType)
The original document's type, such as Sales Invoice or Purchase Invoice.

Parameters:
docType -

getDocCode

public java.lang.String getDocCode()
The internal reference code used by the client application.
If docId is specified, this is not needed.

Returns:
docCode

setDocCode

public void setDocCode(java.lang.String docCode)
The internal reference code used by the client application.
If docId is specified, this is not needed.

Parameters:
docCode -

getCancelCode

public CancelCode getCancelCode()
A code indicating the reason the document is getting canceled.

Returns:
cancelCode

setCancelCode

public void setCancelCode(CancelCode cancelCode)
A code indicating the reason the document is getting canceled.

Parameters:
cancelCode -

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.


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.