public class Item extends Object
| Constructor and Description |
|---|
Item() |
| Modifier and Type | Method and Description |
|---|---|
Item |
addValidationErrorsItem(ValidationError validationErrorsItem) |
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
|
Double |
getQuantityOnHand()
The quantity of the item on hand
|
Purchase |
getSalesDetails()
Get salesDetails
|
String |
getStatusAttributeString()
Status of object
|
Double |
getTotalCostPool()
The value of the item on hand.
|
String |
getUpdatedDateUTC()
Last modified date in UTC format
|
org.threeten.bp.OffsetDateTime |
getUpdatedDateUTCAsDate() |
List<ValidationError> |
getValidationErrors()
Displays array of validation error messages from the API
|
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(Double 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(Double quantityOnHand) |
void |
setSalesDetails(Purchase salesDetails) |
void |
setStatusAttributeString(String statusAttributeString) |
void |
setTotalCostPool(Double totalCostPool) |
void |
setValidationErrors(List<ValidationError> validationErrors) |
Item |
statusAttributeString(String statusAttributeString) |
String |
toString() |
Item |
totalCostPool(Double totalCostPool) |
Item |
validationErrors(List<ValidationError> validationErrors) |
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 Double getTotalCostPool()
public void setTotalCostPool(Double totalCostPool)
public Double getQuantityOnHand()
public void setQuantityOnHand(Double quantityOnHand)
public String getUpdatedDateUTC()
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
public UUID getItemID()
public void setItemID(UUID itemID)
public String getStatusAttributeString()
public void setStatusAttributeString(String statusAttributeString)
public Item validationErrors(List<ValidationError> validationErrors)
public Item addValidationErrorsItem(ValidationError validationErrorsItem)
public List<ValidationError> getValidationErrors()
public void setValidationErrors(List<ValidationError> validationErrors)
Copyright © 2020. All rights reserved.