Class TaxResponseLine
java.lang.Object
com.onenetwork.platform.common.tax.TaxResponseLine
public class TaxResponseLine
extends java.lang.Object
Contains a response for a single line of a TaxRequest. It corresponds to a TaxRequestLine.
-
Constructor Summary
Constructors Constructor Description TaxResponseLine(java.lang.String itemCode, double tax, double amount, int quantity, boolean taxIncluded)
-
Method Summary
Modifier and Type Method Description double
getAmount()
The total amount due for this line.java.lang.String
getItemCode()
Unique String identifying the item.int
getQuantity()
The quantity of items being purchased on this line.double
getTax()
The amount of tax due for this specific lineboolean
isTaxIncluded()
Does the amount due on this line include the tax amount or is that tax due extra
-
Constructor Details
-
TaxResponseLine
public TaxResponseLine(java.lang.String itemCode, double tax, double amount, int quantity, boolean taxIncluded)
-
-
Method Details
-
getItemCode
public java.lang.String getItemCode()Unique String identifying the item. This should correspond to one of the TaxRequestLine's ItemCodes -
getTax
public double getTax()The amount of tax due for this specific line -
getAmount
public double getAmount()The total amount due for this line. This should correspond to one of the TaxRequestLine's quantity * unit price -
getQuantity
public int getQuantity()The quantity of items being purchased on this line. This should correspond to one of the TaxRequestLine's quantities -
isTaxIncluded
public boolean isTaxIncluded()Does the amount due on this line include the tax amount or is that tax due extra
-