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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetaccountingBookValue(Double accountingBookValue)The accounting value of the assetAssetassetId(UUID assetId)The Xero-generated Id for the assetAssetassetName(String assetName)The name of the assetAssetassetNumber(String assetNumber)Must be unique.AssetassetStatus(AssetStatus assetStatus)assetStatusAssetassetTypeId(UUID assetTypeId)The Xero-generated Id for the asset typeAssetbookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail)bookDepreciationDetailAssetbookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting)bookDepreciationSettingAssetcanRollback(Boolean canRollback)Boolean to indicate whether depreciation can be rolled back for this asset individually.AssetdisposalDate(org.threeten.bp.LocalDate disposalDate)The date the asset was disposedAssetdisposalPrice(Double disposalPrice)The price the asset was disposed atbooleanequals(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.org.threeten.bp.LocalDategetDisposalDate()The date the asset was disposedDoublegetDisposalPrice()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)Boolean to indicate whether delete is enabledAssetpurchaseDate(org.threeten.bp.LocalDate purchaseDate)The date the asset was purchased YYYY-MM-DDAssetpurchasePrice(Double purchasePrice)The purchase price of the assetAssetserialNumber(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-DDStringtoString()AssetwarrantyExpiryDate(String warrantyExpiryDate)The date the asset’s warranty expires (if needed) YYYY-MM-DD
-
-
-
Method Detail
-
assetId
public Asset assetId(UUID assetId)
The Xero-generated Id for the asset- Parameters:
assetId- UUID- Returns:
- Asset
-
getAssetId
public UUID getAssetId()
The Xero-generated Id for the asset- Returns:
- assetId
-
setAssetId
public void setAssetId(UUID assetId)
The Xero-generated Id for the asset- Parameters:
assetId- UUID
-
assetName
public Asset assetName(String assetName)
The name of the asset- Parameters:
assetName- String- Returns:
- Asset
-
getAssetName
public String getAssetName()
The name of the asset- Returns:
- assetName
-
setAssetName
public void setAssetName(String assetName)
The name of the asset- Parameters:
assetName- String
-
assetTypeId
public Asset assetTypeId(UUID assetTypeId)
The Xero-generated Id for the asset type- Parameters:
assetTypeId- UUID- Returns:
- Asset
-
getAssetTypeId
public UUID getAssetTypeId()
The Xero-generated Id for the asset type- Returns:
- assetTypeId
-
setAssetTypeId
public void setAssetTypeId(UUID assetTypeId)
The Xero-generated Id for the asset type- Parameters:
assetTypeId- UUID
-
assetNumber
public Asset assetNumber(String assetNumber)
Must be unique.- Parameters:
assetNumber- String- Returns:
- Asset
-
getAssetNumber
public String getAssetNumber()
Must be unique.- Returns:
- assetNumber
-
setAssetNumber
public void setAssetNumber(String assetNumber)
Must be unique.- Parameters:
assetNumber- String
-
purchaseDate
public Asset purchaseDate(org.threeten.bp.LocalDate 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
public Asset purchasePrice(Double purchasePrice)
The purchase price of the asset- Parameters:
purchasePrice- Double- Returns:
- Asset
-
getPurchasePrice
public Double getPurchasePrice()
The purchase price of the asset- Returns:
- purchasePrice
-
setPurchasePrice
public void setPurchasePrice(Double purchasePrice)
The purchase price of the asset- Parameters:
purchasePrice- Double
-
disposalDate
public Asset disposalDate(org.threeten.bp.LocalDate 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
public Asset disposalPrice(Double disposalPrice)
The price the asset was disposed at- Parameters:
disposalPrice- Double- Returns:
- Asset
-
getDisposalPrice
public Double getDisposalPrice()
The price the asset was disposed at- Returns:
- disposalPrice
-
setDisposalPrice
public void setDisposalPrice(Double disposalPrice)
The price the asset was disposed at- Parameters:
disposalPrice- Double
-
assetStatus
public Asset assetStatus(AssetStatus assetStatus)
assetStatus- Parameters:
assetStatus- AssetStatus- Returns:
- Asset
-
getAssetStatus
public AssetStatus getAssetStatus()
Get assetStatus- Returns:
- assetStatus
-
setAssetStatus
public void setAssetStatus(AssetStatus assetStatus)
assetStatus- Parameters:
assetStatus- AssetStatus
-
warrantyExpiryDate
public Asset warrantyExpiryDate(String warrantyExpiryDate)
The date the asset’s warranty expires (if needed) YYYY-MM-DD- Parameters:
warrantyExpiryDate- String- Returns:
- Asset
-
getWarrantyExpiryDate
public String getWarrantyExpiryDate()
The date the asset’s warranty expires (if needed) YYYY-MM-DD- Returns:
- warrantyExpiryDate
-
setWarrantyExpiryDate
public void setWarrantyExpiryDate(String warrantyExpiryDate)
The date the asset’s warranty expires (if needed) YYYY-MM-DD- Parameters:
warrantyExpiryDate- String
-
serialNumber
public Asset serialNumber(String serialNumber)
The asset's serial number- Parameters:
serialNumber- String- Returns:
- Asset
-
getSerialNumber
public String getSerialNumber()
The asset's serial number- Returns:
- serialNumber
-
setSerialNumber
public void setSerialNumber(String serialNumber)
The asset's serial number- Parameters:
serialNumber- String
-
bookDepreciationSetting
public Asset bookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting)
bookDepreciationSetting- Parameters:
bookDepreciationSetting- BookDepreciationSetting- Returns:
- Asset
-
getBookDepreciationSetting
public BookDepreciationSetting getBookDepreciationSetting()
Get bookDepreciationSetting- Returns:
- bookDepreciationSetting
-
setBookDepreciationSetting
public void setBookDepreciationSetting(BookDepreciationSetting bookDepreciationSetting)
bookDepreciationSetting- Parameters:
bookDepreciationSetting- BookDepreciationSetting
-
bookDepreciationDetail
public Asset bookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail)
bookDepreciationDetail- Parameters:
bookDepreciationDetail- BookDepreciationDetail- Returns:
- Asset
-
getBookDepreciationDetail
public BookDepreciationDetail getBookDepreciationDetail()
Get bookDepreciationDetail- Returns:
- bookDepreciationDetail
-
setBookDepreciationDetail
public void setBookDepreciationDetail(BookDepreciationDetail bookDepreciationDetail)
bookDepreciationDetail- Parameters:
bookDepreciationDetail- BookDepreciationDetail
-
canRollback
public Asset canRollback(Boolean 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
public Boolean 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
public void setCanRollback(Boolean 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
-
accountingBookValue
public Asset accountingBookValue(Double accountingBookValue)
The accounting value of the asset- Parameters:
accountingBookValue- Double- Returns:
- Asset
-
getAccountingBookValue
public Double getAccountingBookValue()
The accounting value of the asset- Returns:
- accountingBookValue
-
setAccountingBookValue
public void setAccountingBookValue(Double accountingBookValue)
The accounting value of the asset- Parameters:
accountingBookValue- Double
-
isDeleteEnabledForDate
public Asset isDeleteEnabledForDate(Boolean isDeleteEnabledForDate)
Boolean to indicate whether delete is enabled- Parameters:
isDeleteEnabledForDate- Boolean- Returns:
- Asset
-
getIsDeleteEnabledForDate
public Boolean getIsDeleteEnabledForDate()
Boolean to indicate whether delete is enabled- Returns:
- isDeleteEnabledForDate
-
setIsDeleteEnabledForDate
public void setIsDeleteEnabledForDate(Boolean isDeleteEnabledForDate)
Boolean to indicate whether delete is enabled- Parameters:
isDeleteEnabledForDate- Boolean
-
-