Package com.xero.models.accounting
Class Purchase
java.lang.Object
com.xero.models.accounting.Purchase
public class Purchase extends Object
Purchase
-
Constructor Summary
Constructors Constructor Description Purchase() -
Method Summary
Modifier and Type Method Description PurchaseaccountCode(String accountCode)PurchasecoGSAccountCode(String coGSAccountCode)booleanequals(Object o)StringgetAccountCode()Default account code to be used for purchased/sale.StringgetCoGSAccountCode()Cost of goods sold account.StringgetTaxType()The tax type from TaxRatesDoublegetUnitPrice()Unit Price of the item.inthashCode()voidsetAccountCode(String accountCode)voidsetCoGSAccountCode(String coGSAccountCode)voidsetTaxType(String taxType)voidsetUnitPrice(Double unitPrice)PurchasetaxType(String taxType)StringtoString()PurchaseunitPrice(Double unitPrice)
-
Constructor Details
-
Purchase
public Purchase()
-
-
Method Details
-
unitPrice
-
getUnitPrice
Unit Price of the item. By default UnitPrice is rounded to two decimal places. You can use 4 decimal places by adding the unitdp=4 querystring parameter to your request.- Returns:
- unitPrice
-
setUnitPrice
-
accountCode
-
getAccountCode
Default account code to be used for purchased/sale. Not applicable to the purchase details of tracked items- Returns:
- accountCode
-
setAccountCode
-
coGSAccountCode
-
getCoGSAccountCode
Cost of goods sold account. Only applicable to the purchase details of tracked items.- Returns:
- coGSAccountCode
-
setCoGSAccountCode
-
taxType
-
getTaxType
The tax type from TaxRates- Returns:
- taxType
-
setTaxType
-
equals
-
hashCode
public int hashCode() -
toString
-