Package com.xero.models.assets
Class Asset
java.lang.Object
com.xero.models.assets.Asset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountingBookValue(Double accountingBookValue) The accounting value of the assetThe Xero-generated Id for the assetThe name of the assetassetNumber(String assetNumber) Must be unique.assetStatus(AssetStatus assetStatus) assetStatusassetTypeId(UUID assetTypeId) The Xero-generated Id for the asset typebookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail) bookDepreciationDetailbookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting) bookDepreciationSettingcanRollback(Boolean canRollback) Boolean to indicate whether depreciation can be rolled back for this asset individually.disposalDate(org.threeten.bp.LocalDate disposalDate) The date the asset was disposeddisposalPrice(Double disposalPrice) The price the asset was disposed atbooleanThe accounting value of the assetThe Xero-generated Id for the assetThe name of the assetMust be unique.Get assetStatusThe Xero-generated Id for the asset typeGet bookDepreciationDetailGet bookDepreciationSettingBoolean to indicate whether depreciation can be rolled back for this asset individually.org.threeten.bp.LocalDateThe date the asset was disposedThe price the asset was disposed atBoolean to indicate whether delete is enabledorg.threeten.bp.LocalDateThe date the asset was purchased YYYY-MM-DDThe purchase price of the assetThe asset's serial numberThe date the asset’s warranty expires (if needed) YYYY-MM-DDinthashCode()isDeleteEnabledForDate(Boolean isDeleteEnabledForDate) Boolean to indicate whether delete is enabledpurchaseDate(org.threeten.bp.LocalDate purchaseDate) The date the asset was purchased YYYY-MM-DDpurchasePrice(Double purchasePrice) The purchase price of the assetserialNumber(String serialNumber) The asset's serial numbervoidsetAccountingBookValue(Double accountingBookValue) The accounting value of the assetvoidsetAssetId(UUID assetId) The Xero-generated Id for the assetvoidsetAssetName(String assetName) The name of the assetvoidsetAssetNumber(String assetNumber) Must be unique.voidsetAssetStatus(AssetStatus assetStatus) assetStatusvoidsetAssetTypeId(UUID assetTypeId) The Xero-generated Id for the asset typevoidsetBookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail) bookDepreciationDetailvoidsetBookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting) bookDepreciationSettingvoidsetCanRollback(Boolean canRollback) Boolean to indicate whether depreciation can be rolled back for this asset individually.voidsetDisposalDate(org.threeten.bp.LocalDate disposalDate) The date the asset was disposedvoidsetDisposalPrice(Double disposalPrice) The price the asset was disposed atvoidsetIsDeleteEnabledForDate(Boolean isDeleteEnabledForDate) Boolean to indicate whether delete is enabledvoidsetPurchaseDate(org.threeten.bp.LocalDate purchaseDate) The date the asset was purchased YYYY-MM-DDvoidsetPurchasePrice(Double purchasePrice) The purchase price of the assetvoidsetSerialNumber(String serialNumber) The asset's serial numbervoidsetWarrantyExpiryDate(String warrantyExpiryDate) The date the asset’s warranty expires (if needed) YYYY-MM-DDtoString()warrantyExpiryDate(String warrantyExpiryDate) The date the asset’s warranty expires (if needed) YYYY-MM-DD
-
Constructor Details
-
Asset
public Asset()
-
-
Method Details
-
assetId
-
getAssetId
-
setAssetId
-
assetName
-
getAssetName
-
setAssetName
-
assetTypeId
-
getAssetTypeId
-
setAssetTypeId
The Xero-generated Id for the asset type- Parameters:
assetTypeId- UUID
-
assetNumber
-
getAssetNumber
-
setAssetNumber
-
purchaseDate
The date the asset was purchased YYYY-MM-DD- Parameters:
purchaseDate- LocalDate- Returns:
- Asset
-
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) The date the asset was purchased YYYY-MM-DD- Parameters:
purchaseDate- LocalDate
-
purchasePrice
-
getPurchasePrice
-
setPurchasePrice
The purchase price of the asset- Parameters:
purchasePrice- Double
-
disposalDate
The date the asset was disposed- Parameters:
disposalDate- LocalDate- Returns:
- Asset
-
getDisposalDate
public org.threeten.bp.LocalDate getDisposalDate()The date the asset was disposed- Returns:
- disposalDate
-
setDisposalDate
public void setDisposalDate(org.threeten.bp.LocalDate disposalDate) The date the asset was disposed- Parameters:
disposalDate- LocalDate
-
disposalPrice
-
getDisposalPrice
-
setDisposalPrice
The price the asset was disposed at- Parameters:
disposalPrice- Double
-
assetStatus
assetStatus- Parameters:
assetStatus- AssetStatus- Returns:
- Asset
-
getAssetStatus
-
setAssetStatus
assetStatus- Parameters:
assetStatus- AssetStatus
-
warrantyExpiryDate
-
getWarrantyExpiryDate
The date the asset’s warranty expires (if needed) YYYY-MM-DD- Returns:
- warrantyExpiryDate
-
setWarrantyExpiryDate
The date the asset’s warranty expires (if needed) YYYY-MM-DD- Parameters:
warrantyExpiryDate- String
-
serialNumber
-
getSerialNumber
-
setSerialNumber
The asset's serial number- Parameters:
serialNumber- String
-
bookDepreciationSetting
bookDepreciationSetting- Parameters:
bookDepreciationSetting- BookDepreciationSetting- Returns:
- Asset
-
getBookDepreciationSetting
Get bookDepreciationSetting- Returns:
- bookDepreciationSetting
-
setBookDepreciationSetting
bookDepreciationSetting- Parameters:
bookDepreciationSetting- BookDepreciationSetting
-
bookDepreciationDetail
bookDepreciationDetail- Parameters:
bookDepreciationDetail- BookDepreciationDetail- Returns:
- Asset
-
getBookDepreciationDetail
Get bookDepreciationDetail- Returns:
- bookDepreciationDetail
-
setBookDepreciationDetail
bookDepreciationDetail- Parameters:
bookDepreciationDetail- BookDepreciationDetail
-
canRollback
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.- Parameters:
canRollback- Boolean- Returns:
- Asset
-
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
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.- Parameters:
canRollback- Boolean
-
accountingBookValue
-
getAccountingBookValue
The accounting value of the asset- Returns:
- accountingBookValue
-
setAccountingBookValue
The accounting value of the asset- Parameters:
accountingBookValue- Double
-
isDeleteEnabledForDate
-
getIsDeleteEnabledForDate
Boolean to indicate whether delete is enabled- Returns:
- isDeleteEnabledForDate
-
setIsDeleteEnabledForDate
Boolean to indicate whether delete is enabled- Parameters:
isDeleteEnabledForDate- Boolean
-
equals
-
hashCode
-
toString
-