public class Item extends Object
| Constructor and Description |
|---|
Item() |
| Modifier and Type | Method and Description |
|---|---|
Item |
code(String code) |
Item |
description(String description) |
boolean |
equals(Object o) |
String |
getCode()
User defined item code (max length = 30)
|
String |
getDescription()
The sales description of the item (max length = 4000)
|
String |
getInventoryAssetAccountCode()
The inventory asset account for the item.
|
Boolean |
getIsPurchased()
Boolean value, defaults to true.
|
Boolean |
getIsSold()
Boolean value, defaults to true.
|
Boolean |
getIsTrackedAsInventory()
True for items that are tracked as inventory.
|
UUID |
getItemID()
The Xero identifier for an Item
|
String |
getName()
The name of the item (max length = 50)
|
String |
getPurchaseDescription()
The purchase description of the item (max length = 4000)
|
Purchase |
getPurchaseDetails()
Get purchaseDetails
|
Float |
getQuantityOnHand()
The quantity of the item on hand
|
Purchase |
getSalesDetails()
Get salesDetails
|
Float |
getTotalCostPool()
The value of the item on hand.
|
org.threeten.bp.OffsetDateTime |
getUpdatedDateUTC()
Last modified date in UTC format
|
int |
hashCode() |
Item |
inventoryAssetAccountCode(String inventoryAssetAccountCode) |
Item |
isPurchased(Boolean isPurchased) |
Item |
isSold(Boolean isSold) |
Item |
isTrackedAsInventory(Boolean isTrackedAsInventory) |
Item |
itemID(UUID itemID) |
Item |
name(String name) |
Item |
purchaseDescription(String purchaseDescription) |
Item |
purchaseDetails(Purchase purchaseDetails) |
Item |
quantityOnHand(Float quantityOnHand) |
Item |
salesDetails(Purchase salesDetails) |
void |
setCode(String code) |
void |
setDescription(String description) |
void |
setInventoryAssetAccountCode(String inventoryAssetAccountCode) |
void |
setIsPurchased(Boolean isPurchased) |
void |
setIsSold(Boolean isSold) |
void |
setIsTrackedAsInventory(Boolean isTrackedAsInventory) |
void |
setItemID(UUID itemID) |
void |
setName(String name) |
void |
setPurchaseDescription(String purchaseDescription) |
void |
setPurchaseDetails(Purchase purchaseDetails) |
void |
setQuantityOnHand(Float quantityOnHand) |
void |
setSalesDetails(Purchase salesDetails) |
void |
setTotalCostPool(Float totalCostPool) |
void |
setUpdatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC) |
String |
toString() |
Item |
totalCostPool(Float totalCostPool) |
Item |
updatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC) |
public String getCode()
public void setCode(String code)
public String getInventoryAssetAccountCode()
public void setInventoryAssetAccountCode(String inventoryAssetAccountCode)
public String getName()
public void setName(String name)
public Boolean getIsSold()
public void setIsSold(Boolean isSold)
public Boolean getIsPurchased()
public void setIsPurchased(Boolean isPurchased)
public String getDescription()
public void setDescription(String description)
public String getPurchaseDescription()
public void setPurchaseDescription(String purchaseDescription)
public Purchase getPurchaseDetails()
public void setPurchaseDetails(Purchase purchaseDetails)
public Purchase getSalesDetails()
public void setSalesDetails(Purchase salesDetails)
public Boolean getIsTrackedAsInventory()
public void setIsTrackedAsInventory(Boolean isTrackedAsInventory)
public Float getTotalCostPool()
public void setTotalCostPool(Float totalCostPool)
public Float getQuantityOnHand()
public void setQuantityOnHand(Float quantityOnHand)
public Item updatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC)
public org.threeten.bp.OffsetDateTime getUpdatedDateUTC()
public void setUpdatedDateUTC(org.threeten.bp.OffsetDateTime updatedDateUTC)
public UUID getItemID()
public void setItemID(UUID itemID)
Copyright © 2018. All rights reserved.