|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avalara.avatax.services.tax.PostTaxRequest
public class PostTaxRequest
Data to pass to TaxSvcSoap.postTax(com.avalara.avatax.services.tax.PostTaxRequest)
.
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.
PostTaxResult
,
Serialized FormConstructor Summary | |
---|---|
PostTaxRequest()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
boolean |
getCommit()
Gets the commit value for this PostTaxRequest. |
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()
Gets the Document Code, that is the internal reference code used by the client application. |
java.util.Date |
getDocDate()
Gets the Document Date, i.e. |
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. |
java.math.BigDecimal |
getTotalAmount()
The total amount (not including tax) for the document. |
java.math.BigDecimal |
getTotalTax()
The total tax for the document. |
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 |
setCommit(boolean commit)
|
void |
setCompanyCode(java.lang.String companyCode)
Sets the client application company reference code. |
void |
setDocCode(java.lang.String docCode)
Sets the Document Code, that is the internal reference code used by the client application. |
void |
setDocDate(java.util.Date docDate)
Sets the Document Date, i.e. |
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. |
void |
setHashCode(int hashCode)
Sets the hashCode value for this PostTaxRequest. |
void |
setTotalAmount(java.math.BigDecimal totalAmount)
The total amount (not including tax) for the document. |
void |
setTotalTax(java.math.BigDecimal totalTax)
The total tax for the document. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PostTaxRequest()
Method Detail |
---|
public java.lang.String getDocId()
This is a unique AvaTax identifier for this document. If known, the CompanyCode, DocCode, and DocType are not needed.
GetTaxResult.getDocId()
public void setDocId(java.lang.String docId)
This is a unique AvaTax identifier for this document. If known, the CompanyCode, DocCode, and DocType are not needed.
docId
- GetTaxResult.getDocId()
public java.lang.String getCompanyCode()
public void setCompanyCode(java.lang.String companyCode)
companyCode
- public DocumentType getDocType()
public void setDocType(DocumentType docType)
docType
- public java.lang.String getDocCode()
public void setDocCode(java.lang.String docCode)
docCode
- public java.util.Date getDocDate()
public void setDocDate(java.util.Date docDate)
docDate
- public java.math.BigDecimal getTotalAmount()
This is used for verification and reconciliation. This should be the TotalAmount
returned by GetTaxResult
when tax
was calculated for this document; otherwise the web service will return an error.
getTotalTax()
public void setTotalAmount(java.math.BigDecimal totalAmount)
This is used for verification and reconciliation. This should be the TotalAmount
returned by GetTaxResult
when tax
was calculated for this document; otherwise the web service will return an error.
totalAmount
- getTotalTax()
public java.math.BigDecimal getTotalTax()
This is used for verification and reconciliation. This should be the TotalTax returned by
GetTaxResult
when tax
was calculated for this document; otherwise the web service will return an error.
getTotalAmount()
public void setTotalTax(java.math.BigDecimal totalTax)
This is used for verification and reconciliation. This should be the TotalTax returned by
GetTaxResult
when tax
was calculated for this document; otherwise the web service will return an error.
totalTax
- getTotalAmount()
public void setHashCode(int hashCode)
This should be computed by an SDK developer using some standard algorithm out of the content of the object. This value gets stored in the system and can be retrieved for the cross checking [Internal Reconciliation purpose].
See sample code for more details
hashCode
- public boolean getCommit()
public void setCommit(boolean commit)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
mechType
- _javaType
- _xmlType
-
public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
mechType
- _javaType
- _xmlType
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |