Package com.xero.models.assets
Class Asset
java.lang.Object
com.xero.models.assets.Asset
public class Asset extends Object
Asset
-
Constructor Summary
Constructors Constructor Description Asset() -
Method Summary
Modifier and Type Method Description AssetaccountingBookValue(Double accountingBookValue)AssetassetId(UUID assetId)AssetassetName(String assetName)AssetassetNumber(String assetNumber)AssetassetStatus(AssetStatus assetStatus)AssetassetTypeId(UUID assetTypeId)AssetbookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail)AssetbookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting)AssetcanRollback(Boolean canRollback)AssetdisposalPrice(Double disposalPrice)booleanequals(Object o)DoublegetAccountingBookValue()The accounting value of the assetUUIDgetAssetId()The Xero-generated Id for the assetStringgetAssetName()The name of the assetStringgetAssetNumber()Must be unique.AssetStatusgetAssetStatus()Get assetStatusUUIDgetAssetTypeId()The Xero-generated Id for the asset typeBookDepreciationDetailgetBookDepreciationDetail()Get bookDepreciationDetailBookDepreciationSettinggetBookDepreciationSetting()Get bookDepreciationSettingBooleangetCanRollback()Boolean to indicate whether depreciation can be rolled back for this asset individually.DoublegetDisposalPrice()The price the asset was disposed atBooleangetIsDeleteEnabledForDate()Boolean to indicate whether delete is enabledorg.threeten.bp.LocalDategetPurchaseDate()The date the asset was purchased YYYY-MM-DDDoublegetPurchasePrice()The purchase price of the assetStringgetSerialNumber()The asset's serial numberStringgetWarrantyExpiryDate()The date the asset’s warranty expires (if needed) YYYY-MM-DDinthashCode()AssetisDeleteEnabledForDate(Boolean isDeleteEnabledForDate)AssetpurchaseDate(org.threeten.bp.LocalDate purchaseDate)AssetpurchasePrice(Double purchasePrice)AssetserialNumber(String serialNumber)voidsetAccountingBookValue(Double accountingBookValue)voidsetAssetId(UUID assetId)voidsetAssetName(String assetName)voidsetAssetNumber(String assetNumber)voidsetAssetStatus(AssetStatus assetStatus)voidsetAssetTypeId(UUID assetTypeId)voidsetBookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail)voidsetBookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting)voidsetCanRollback(Boolean canRollback)voidsetDisposalPrice(Double disposalPrice)voidsetIsDeleteEnabledForDate(Boolean isDeleteEnabledForDate)voidsetPurchaseDate(org.threeten.bp.LocalDate purchaseDate)voidsetPurchasePrice(Double purchasePrice)voidsetSerialNumber(String serialNumber)voidsetWarrantyExpiryDate(String warrantyExpiryDate)StringtoString()AssetwarrantyExpiryDate(String warrantyExpiryDate)
-
Constructor Details
-
Asset
public Asset()
-
-
Method Details
-
assetId
-
getAssetId
The Xero-generated Id for the asset- Returns:
- assetId
-
setAssetId
-
assetName
-
getAssetName
The name of the asset- Returns:
- assetName
-
setAssetName
-
assetTypeId
-
getAssetTypeId
The Xero-generated Id for the asset type- Returns:
- assetTypeId
-
setAssetTypeId
-
assetNumber
-
getAssetNumber
Must be unique.- Returns:
- assetNumber
-
setAssetNumber
-
purchaseDate
-
getPurchaseDate
public org.threeten.bp.LocalDate getPurchaseDate()The date the asset was purchased YYYY-MM-DD- Returns:
- purchaseDate
-
setPurchaseDate
public void setPurchaseDate(org.threeten.bp.LocalDate purchaseDate) -
purchasePrice
-
getPurchasePrice
The purchase price of the asset- Returns:
- purchasePrice
-
setPurchasePrice
-
disposalPrice
-
getDisposalPrice
The price the asset was disposed at- Returns:
- disposalPrice
-
setDisposalPrice
-
assetStatus
-
getAssetStatus
Get assetStatus- Returns:
- assetStatus
-
setAssetStatus
-
warrantyExpiryDate
-
getWarrantyExpiryDate
The date the asset’s warranty expires (if needed) YYYY-MM-DD- Returns:
- warrantyExpiryDate
-
setWarrantyExpiryDate
-
serialNumber
-
getSerialNumber
The asset's serial number- Returns:
- serialNumber
-
setSerialNumber
-
bookDepreciationSetting
-
getBookDepreciationSetting
Get bookDepreciationSetting- Returns:
- bookDepreciationSetting
-
setBookDepreciationSetting
-
bookDepreciationDetail
-
getBookDepreciationDetail
Get bookDepreciationDetail- Returns:
- bookDepreciationDetail
-
setBookDepreciationDetail
-
canRollback
-
getCanRollback
Boolean to indicate whether depreciation can be rolled back for this asset individually. This is true if it doesn't have 'legacy' journal entries and if there is no lock period that would prevent this asset from rolling back.- Returns:
- canRollback
-
setCanRollback
-
accountingBookValue
-
getAccountingBookValue
The accounting value of the asset- Returns:
- accountingBookValue
-
setAccountingBookValue
-
isDeleteEnabledForDate
-
getIsDeleteEnabledForDate
Boolean to indicate whether delete is enabled- Returns:
- isDeleteEnabledForDate
-
setIsDeleteEnabledForDate
-
equals
-
hashCode
public int hashCode() -
toString
-