|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avalara.avatax.services.tax.TaxLine
public class TaxLine
Taxes for a specific document Line
.
ArrayOfTaxLine
,
GetTaxResult
,
Serialized FormConstructor Summary | |
---|---|
TaxLine()
Initializes a new instance of the class. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
AccountingMethod |
getAccountingMethod()
Gets the accountingMethod value for this TaxLine. |
BoundaryLevel |
getBoundaryLevel()
The level of jurisdiction boundary precision used for the tax calculation. |
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.math.BigDecimal |
getDiscount()
Discount amount applied to this line |
int |
getExemptCertId()
Gets the exemptCertId value for this TaxLine. |
java.math.BigDecimal |
getExemption()
Deprecated. See TaxDetail.getExemption() . |
java.lang.String |
getNo()
Line Number. |
java.math.BigDecimal |
getRate()
Deprecated. See TaxDetail.getRate() . |
java.util.Date |
getReportingDate()
Gets the reportingDate value for this TaxLine. |
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 |
getTax()
The tax amount, i.e. |
java.math.BigDecimal |
getTaxable()
Deprecated. See TaxDetail.getTaxable() . |
java.math.BigDecimal |
getTaxCalculated()
Gets the taxCalculated value for this TaxLine. |
java.lang.String |
getTaxCode()
System Tax Code. |
java.util.Date |
getTaxDate()
Gets the taxDate value for this TaxLine. |
ArrayOfTaxDetail |
getTaxDetails()
Tax by jurisdiction. |
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. |
boolean |
isTaxability()
Is the item taxable? |
boolean |
isTaxIncluded()
True if tax is included in the line. |
void |
setAccountingMethod(AccountingMethod accountingMethod)
Sets the accountingMethod value for this TaxLine. |
void |
setBoundaryLevel(BoundaryLevel boundaryLevel)
The level of jurisdiction boundary precision used for the tax calculation. |
void |
setDiscount(java.math.BigDecimal discount)
Discount amount applied to this line |
void |
setExemptCertId(int exemptCertId)
Sets the exemptCertId value for this TaxLine. |
void |
setExemption(java.math.BigDecimal exemption)
Deprecated. See TaxDetail.setExemption(java.math.BigDecimal) . |
void |
setNo(java.lang.String no)
Line Number. |
void |
setRate(java.math.BigDecimal rate)
Deprecated. See TaxDetail.setRate(java.math.BigDecimal) . |
void |
setReportingDate(java.util.Date reportingDate)
Sets the reportingDate value for this TaxLine. |
void |
setTax(java.math.BigDecimal tax)
The tax amount, i.e. |
void |
setTaxability(boolean taxability)
Is the item taxable? |
void |
setTaxable(java.math.BigDecimal taxable)
Deprecated. See TaxDetail.setTaxable(java.math.BigDecimal) . |
void |
setTaxCalculated(java.math.BigDecimal taxCalculated)
Sets the taxCalculated value for this TaxLine. |
void |
setTaxCode(java.lang.String taxCode)
System Tax Code. |
void |
setTaxDate(java.util.Date taxDate)
Sets the taxDate value for this TaxLine. |
void |
setTaxDetails(ArrayOfTaxDetail taxDetails)
Tax by jurisdiction. |
void |
setTaxIncluded(boolean taxIncluded)
True if tax is included in the line. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaxLine()
Method Detail |
---|
public java.lang.String getNo()
Lines are added to a GetTaxRequest
object when preparing a document for tax calculation.
The line No unqiuely identifies a particular line item for the client.
Example:
[Java] GetTaxRequest request = new GetTaxRequest(); Line line = new Line(request); line.setNo("01"); line = new Line(request); line.setNo("02"); System.out.println("No Lines: " + request.getLines().getLine().length); // 2 Lines System.out.println("1st Line's Number: " + request.getLines().getLine(0).getNo()); // "01" System.out.println("1st Line's Number: " + request.getLines().getLine(1).getNo()); // "02"
public void setNo(java.lang.String no)
Lines are added to a GetTaxRequest
object when preparing a document for tax calculation.
The line No unqiuely identifies a particular line item for the client.
Example:
[Java] GetTaxRequest request = new GetTaxRequest(); Line line = new Line(request); line.setNo("01"); line = new Line(request); line.setNo("02"); System.out.println("No Lines: " + request.getLines().getLine().length); // 2 Lines System.out.println("1st Line's Number: " + request.getLines().getLine(0).getNo()); // "01" System.out.println("1st Line's Number: " + request.getLines().getLine(1).getNo()); // "02"
no
- public java.lang.String getTaxCode()
public void setTaxCode(java.lang.String taxCode)
taxCode
- public boolean isTaxability()
public void setTaxability(boolean taxability)
taxability
- public BoundaryLevel getBoundaryLevel()
public void setBoundaryLevel(BoundaryLevel boundaryLevel)
boundaryLevel
- public java.math.BigDecimal getExemption()
TaxDetail.getExemption()
.
public void setExemption(java.math.BigDecimal exemption)
TaxDetail.setExemption(java.math.BigDecimal)
.
exemption
- public java.math.BigDecimal getDiscount()
public void setDiscount(java.math.BigDecimal discount)
discount
- public java.math.BigDecimal getTaxable()
TaxDetail.getTaxable()
.
public void setTaxable(java.math.BigDecimal taxable)
TaxDetail.setTaxable(java.math.BigDecimal)
.
taxable
- public java.math.BigDecimal getRate()
TaxDetail.getRate()
.
public void setRate(java.math.BigDecimal rate)
TaxDetail.setRate(java.math.BigDecimal)
.
rate
- public java.math.BigDecimal getTax()
getTaxable()
* getRate()
).
public void setTax(java.math.BigDecimal tax)
getTaxable()
* getRate()
).
tax
- public java.math.BigDecimal getTaxCalculated()
public void setTaxCalculated(java.math.BigDecimal taxCalculated)
taxCalculated
- public ArrayOfTaxDetail getTaxDetails()
public void setTaxDetails(ArrayOfTaxDetail taxDetails)
taxDetails
- public int getExemptCertId()
public void setExemptCertId(int exemptCertId)
exemptCertId
- public java.util.Date getTaxDate()
public void setTaxDate(java.util.Date taxDate)
taxDate
- public java.util.Date getReportingDate()
public void setReportingDate(java.util.Date reportingDate)
reportingDate
- public AccountingMethod getAccountingMethod()
public void setAccountingMethod(AccountingMethod accountingMethod)
accountingMethod
- public boolean isTaxIncluded()
public void setTaxIncluded(boolean taxIncluded)
taxIncluded
- 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 |