public class Asset extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Asset.AssetStatusEnum
See Asset Status Codes.
|
| Constructor and Description |
|---|
Asset() |
| Modifier and Type | Method and Description |
|---|---|
Asset |
accountingBookValue(Float accountingBookValue) |
Asset |
assetId(UUID assetId) |
Asset |
assetName(String assetName) |
Asset |
assetNumber(String assetNumber) |
Asset |
assetStatus(Asset.AssetStatusEnum assetStatus) |
Asset |
bookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail) |
Asset |
bookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting) |
Asset |
canRollback(Boolean canRollback) |
Asset |
disposalPrice(Float disposalPrice) |
boolean |
equals(Object o) |
Float |
getAccountingBookValue()
The accounting value of the asset
|
UUID |
getAssetId()
The Xero-generated Id for the asset
|
String |
getAssetName()
The name of the asset
|
String |
getAssetNumber()
Must be unique.
|
Asset.AssetStatusEnum |
getAssetStatus()
See Asset Status Codes.
|
BookDepreciationDetail |
getBookDepreciationDetail()
Get bookDepreciationDetail
|
BookDepreciationSetting |
getBookDepreciationSetting()
Get bookDepreciationSetting
|
Boolean |
getCanRollback()
Boolean to indicate whether depreciation can be rolled back for this asset individually.
|
Float |
getDisposalPrice()
The price the asset was disposed at
|
Boolean |
getIsDeleteEnabledForDate()
Boolean to indicate whether delete is enabled
|
org.threeten.bp.LocalDate |
getPurchaseDate()
The date the asset was purchased YYYY-MM-DD
|
Float |
getPurchasePrice()
The purchase price of the asset
|
String |
getSerialNumber()
The asset's serial number
|
String |
getWarrantyExpiryDate()
The date the asset’s warranty expires (if needed) YYYY-MM-DD
|
int |
hashCode() |
Asset |
isDeleteEnabledForDate(Boolean isDeleteEnabledForDate) |
Asset |
purchaseDate(org.threeten.bp.LocalDate purchaseDate) |
Asset |
purchasePrice(Float purchasePrice) |
Asset |
serialNumber(String serialNumber) |
void |
setAccountingBookValue(Float accountingBookValue) |
void |
setAssetId(UUID assetId) |
void |
setAssetName(String assetName) |
void |
setAssetNumber(String assetNumber) |
void |
setAssetStatus(Asset.AssetStatusEnum assetStatus) |
void |
setBookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail) |
void |
setBookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting) |
void |
setCanRollback(Boolean canRollback) |
void |
setDisposalPrice(Float disposalPrice) |
void |
setIsDeleteEnabledForDate(Boolean isDeleteEnabledForDate) |
void |
setPurchaseDate(org.threeten.bp.LocalDate purchaseDate) |
void |
setPurchasePrice(Float purchasePrice) |
void |
setSerialNumber(String serialNumber) |
void |
setWarrantyExpiryDate(String warrantyExpiryDate) |
String |
toString() |
Asset |
warrantyExpiryDate(String warrantyExpiryDate) |
public UUID getAssetId()
public void setAssetId(UUID assetId)
public String getAssetName()
public void setAssetName(String assetName)
public String getAssetNumber()
public void setAssetNumber(String assetNumber)
public Asset purchaseDate(org.threeten.bp.LocalDate purchaseDate)
public org.threeten.bp.LocalDate getPurchaseDate()
public void setPurchaseDate(org.threeten.bp.LocalDate purchaseDate)
public Float getPurchasePrice()
public void setPurchasePrice(Float purchasePrice)
public Float getDisposalPrice()
public void setDisposalPrice(Float disposalPrice)
public Asset assetStatus(Asset.AssetStatusEnum assetStatus)
public Asset.AssetStatusEnum getAssetStatus()
public void setAssetStatus(Asset.AssetStatusEnum assetStatus)
public String getWarrantyExpiryDate()
public void setWarrantyExpiryDate(String warrantyExpiryDate)
public String getSerialNumber()
public void setSerialNumber(String serialNumber)
public Asset bookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting)
public BookDepreciationSetting getBookDepreciationSetting()
public void setBookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting)
public Asset bookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail)
public BookDepreciationDetail getBookDepreciationDetail()
public void setBookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail)
public Boolean getCanRollback()
public void setCanRollback(Boolean canRollback)
public Float getAccountingBookValue()
public void setAccountingBookValue(Float accountingBookValue)
public Boolean getIsDeleteEnabledForDate()
public void setIsDeleteEnabledForDate(Boolean isDeleteEnabledForDate)
Copyright © 2020. All rights reserved.