Package com.xero.models.accounting
Class Purchase
java.lang.Object
com.xero.models.accounting.Purchase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountCode(String accountCode) Default account code to be used for purchased/sale.coGSAccountCode(String coGSAccountCode) Cost of goods sold account.booleanDefault account code to be used for purchased/sale.Cost of goods sold account.The tax type from TaxRatesUnit Price of the item.inthashCode()voidsetAccountCode(String accountCode) Default account code to be used for purchased/sale.voidsetCoGSAccountCode(String coGSAccountCode) Cost of goods sold account.voidsetTaxType(String taxType) The tax type from TaxRatesvoidsetUnitPrice(Double unitPrice) Unit Price of the item.The tax type from TaxRatestoString()Unit Price of the item.
-
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
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.- Parameters:
unitPrice- Double
-
accountCode
-
getAccountCode
Default account code to be used for purchased/sale. Not applicable to the purchase details of tracked items- Returns:
- accountCode
-
setAccountCode
Default account code to be used for purchased/sale. Not applicable to the purchase details of tracked items- Parameters:
accountCode- String
-
coGSAccountCode
-
getCoGSAccountCode
Cost of goods sold account. Only applicable to the purchase details of tracked items.- Returns:
- coGSAccountCode
-
setCoGSAccountCode
Cost of goods sold account. Only applicable to the purchase details of tracked items.- Parameters:
coGSAccountCode- String
-
taxType
-
getTaxType
-
setTaxType
-
equals
-
hashCode
-
toString
-