|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avalara.avatax.services.tax.GetTaxRequest
public class GetTaxRequest
Data to pass to TaxSvcSoap.getTax(com.avalara.avatax.services.tax.GetTaxRequest)
.
GetTaxResult
,
Serialized FormConstructor Summary | |
---|---|
GetTaxRequest()
Initializes a new instance of the class. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
ArrayOfBaseAddress |
getAddresses()
Gets the addresses value for this GetTaxRequest. |
java.lang.String |
getBatchCode()
Gets the batchCode value for this GetTaxRequest. |
boolean |
getCommit()
Gets the commit value for this GetTaxRequest. |
java.lang.String |
getCompanyCode()
Gets the client application company reference code. |
java.lang.String |
getCurrencyCode()
Gets the currencyCode value for this GetTaxRequest. |
java.lang.String |
getCustomerCode()
The client application customer reference code. |
java.lang.String |
getCustomerUsageType()
The client application customer or usage type. |
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 |
getDestinationCode()
Used internally by the adapter to reference the Line.getDestinationAddress() **FIX**. |
DetailLevel |
getDetailLevel()
Specifies the level of detail to return. |
java.math.BigDecimal |
getDiscount()
The discount amount to apply to the document. |
java.lang.String |
getDocCode()
Gets the Document Code, i.e., the internal reference code used by the client application. |
java.util.Date |
getDocDate()
The date on the invoice, purchase order, etc. |
DocumentType |
getDocType()
The document type specifies the category of the document and affects how the document is treated after a tax calculation; see DocumentType for more information about the specific document types. |
java.math.BigDecimal |
getExchangeRate()
Gets the exchangeRate value for this GetTaxRequest. |
java.util.Date |
getExchangeRateEffDate()
Gets the exchangeRateEffDate value for this GetTaxRequest. |
java.lang.String |
getExemptionNo()
Exemption Number for this document |
int |
getHashCode()
Gets the hashCode value for this GetTaxRequest. |
ArrayOfLine |
getLines()
Document line items list. |
java.lang.String |
getLocationCode()
Gets the locationCode value for this GetTaxRequest. |
java.lang.String |
getOriginCode()
Used internally by the adapter to reference the Line.getOriginAddress() |
java.util.Date |
getPaymentDate()
Gets the paymentDate value for this GetTaxRequest. |
java.lang.String |
getPurchaseOrderNo()
Purchase Order Number for this document. |
java.lang.String |
getReferenceCode()
For returns (see DocumentType ), refers to the getDocCode()
of the original invoice. |
java.lang.String |
getSalespersonCode()
The client application salesperson reference 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. |
ServiceMode |
getServiceMode()
Gets the serviceMode value for this GetTaxRequest. |
TaxOverride |
getTaxOverride()
|
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 |
setAddresses(ArrayOfBaseAddress addresses)
Sets the addresses for this request. |
void |
setBatchCode(java.lang.String batchCode)
Sets the batchCode value for this GetTaxRequest. |
void |
setCommit(boolean commit)
Sets the commit value for this GetTaxRequest. |
void |
setCompanyCode(java.lang.String companyCode)
Sets the client application company reference code. |
void |
setCurrencyCode(java.lang.String currencyCode)
Sets the currencyCode value for this GetTaxRequest. |
void |
setCustomerCode(java.lang.String customerCode)
The client application customer reference code. |
void |
setCustomerUsageType(java.lang.String customerUsageType)
The client application customer or usage type. |
void |
setDestinationCode(java.lang.String destinationCode)
Used internally by the adapter to reference the Line.getDestinationAddress() **FIX**. |
void |
setDetailLevel(DetailLevel detailLevel)
Specifies the level of detail to return. |
void |
setDiscount(java.math.BigDecimal discount)
The discount amount to apply to the document. |
void |
setDocCode(java.lang.String docCode)
Sets the Document Code, i.e., the internal reference code used by the client application. |
void |
setDocDate(java.util.Date docDate)
The date on the invoice, purchase order, etc. |
void |
setDocType(DocumentType docType)
The document type specifies the category of the document and affects how the document is treated after a tax calculation; see DocumentType for more information about the specific document types. |
void |
setExchangeRate(java.math.BigDecimal exchangeRate)
Sets the exchangeRate value for this GetTaxRequest. |
void |
setExchangeRateEffDate(java.util.Date exchangeRateEffDate)
Sets the exchangeRateEffDate value for this GetTaxRequest. |
void |
setExemptionNo(java.lang.String exemptionNo)
Exemption Number for this document |
void |
setHashCode(int hashCode)
Sets the hashCode value for this GetTaxRequest. |
void |
setLines(ArrayOfLine lines)
Document line items list. |
void |
setLocationCode(java.lang.String locationCode)
Sets the locationCode value for this GetTaxRequest. |
void |
setOriginCode(java.lang.String originCode)
Used internally by the adapter to reference the Line.getOriginAddress() . |
void |
setPaymentDate(java.util.Date paymentDate)
Sets the paymentDate value for this GetTaxRequest. |
void |
setPurchaseOrderNo(java.lang.String purchaseOrderNo)
Purchase Order Number for this document. |
void |
setReferenceCode(java.lang.String referenceCode)
For returns (see DocumentType ), refers to the getDocCode()
of the original invoice. |
void |
setSalespersonCode(java.lang.String salespersonCode)
The client application salesperson reference code. |
void |
setServiceMode(ServiceMode serviceMode)
Sets the serviceMode value for this GetTaxRequest. |
void |
setTaxOverride(TaxOverride taxOverride)
Sets the taxOverride value for this GetTaxRequest. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GetTaxRequest()
Method Detail |
---|
public java.lang.String getCompanyCode()
public void setCompanyCode(java.lang.String companyCode)
companyCode
- public DocumentType getDocType()
DocumentType
for more information about the specific document types.
[Java] GetTaxRequest request = new GetTaxRequest(); request.setDocType(DocumentType.SalesInvoice);
public void setDocType(DocumentType docType)
DocumentType
for more information about the specific document types.
[Java] GetTaxRequest request = new GetTaxRequest(); request.setDocType(DocumentType.SalesInvoice);
docType
- public java.lang.String getDocCode()
If DocId is specified, this is not needed.
public void setDocCode(java.lang.String docCode)
If DocId is specified, this is not needed.
docCode
- public java.util.Date getDocDate()
public void setDocDate(java.util.Date docDate)
docDate
- public java.lang.String getSalespersonCode()
public void setSalespersonCode(java.lang.String salespersonCode)
salespersonCode
- public java.lang.String getCustomerCode()
public void setCustomerCode(java.lang.String customerCode)
customerCode
- public java.lang.String getCustomerUsageType()
public void setCustomerUsageType(java.lang.String customerUsageType)
Setting customerUsageType between 'A' to 'L' will automatically exepmt the transaction
customerUsageType
- public java.math.BigDecimal getDiscount()
public void setDiscount(java.math.BigDecimal discount)
discount
- public java.lang.String getPurchaseOrderNo()
This is required for single use exemption certificates to match the order and invoice with the certificate.
public void setPurchaseOrderNo(java.lang.String purchaseOrderNo)
This is required for single use exemption certificates to match the order and invoice with the certificate.
purchaseOrderNo
- public java.lang.String getExemptionNo()
public void setExemptionNo(java.lang.String exemptionNo)
exemptionNo
- public java.lang.String getOriginCode()
Line.getOriginAddress()
Same as the OriginAddress's BaseAddress.getAddressCode()
An internally maintained value representing the OriginAddress
public void setOriginCode(java.lang.String originCode)
Line.getOriginAddress()
.
Same as the OriginAddress's BaseAddress.getAddressCode()
--
An internally maintained value representing the OriginAddress
Note: Made "setter" private to avoid corrupting the new way of referencing addresses.
originCode
- public java.lang.String getDestinationCode()
Line.getDestinationAddress()
**FIX**.
Same as the DestinationAddress's BaseAddress.getAddressCode()
.
An internally maintained value representing the DestinationAddress.
public void setDestinationCode(java.lang.String destinationCode)
Line.getDestinationAddress()
**FIX**.
Same as the DestinationAddress's BaseAddress.getAddressCode()
--
An internally maintained value representing the DestinationAddress.
Note: Made "setter" private to avoid corrupting the new way of referencing addresses.
destinationCode
- public ArrayOfBaseAddress getAddresses()
line items listAddress
,
Line
public void setAddresses(ArrayOfBaseAddress addresses)
getOriginCode()
, getDestinationCode()
and Line
elements.
addresses
- line items listAddress
,
Line
public ArrayOfLine getLines()
public void setLines(ArrayOfLine lines)
lines
- public DetailLevel getDetailLevel()
public void setDetailLevel(DetailLevel detailLevel)
detailLevel
- public java.lang.String getReferenceCode()
DocumentType
), refers to the getDocCode()
of the original invoice.
public void setReferenceCode(java.lang.String referenceCode)
DocumentType
), refers to the getDocCode()
of the original invoice.
referenceCode
- public int getHashCode()
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
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 java.lang.String getLocationCode()
It is Also referred to as a Store Location, Outlet Id, or Outlet code is a number assigned by the State which identifies a Store location. Some state returns require taxes are broken out separately for Store Locations.
public void setLocationCode(java.lang.String locationCode)
It is Also referred to as a Store Location, Outlet Id, or Outlet code is a number assigned by the State which identifies a Store location. Some state returns require taxes are broken out separately for Store Locations.
locationCode
- public boolean getCommit()
public void setCommit(boolean commit)
This has been defaulted to false. If this has been set to true AvaTax will commit the document on this call. Seller's system who wants to Save,Post and Commit the document on one call should use this flag.
Also SeePostTaxRequest.setCommit(boolean)
commit
- public java.lang.String getBatchCode()
public void setBatchCode(java.lang.String batchCode)
batchCode
- public TaxOverride getTaxOverride()
public void setTaxOverride(TaxOverride taxOverride)
TaxOverride indicates to apply tax override to the document.
Also SeeTaxOverride
taxOverride
- public java.lang.String getCurrencyCode()
public void setCurrencyCode(java.lang.String currencyCode)
It is 3 character ISO 4217 currency code.
currencyCode
- public ServiceMode getServiceMode()
public void setServiceMode(ServiceMode serviceMode)
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.
serviceMode
- public java.util.Date getPaymentDate()
public void setPaymentDate(java.util.Date paymentDate)
paymentDate
- public java.math.BigDecimal getExchangeRate()
public void setExchangeRate(java.math.BigDecimal exchangeRate)
exchangeRate
- public java.util.Date getExchangeRateEffDate()
public void setExchangeRateEffDate(java.util.Date exchangeRateEffDate)
exchangeRateEffDate
- 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)
public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |