Class Asset

java.lang.Object
com.xero.models.assets.Asset

public class Asset
extends Object
Asset
  • Constructor Details

    • Asset

      public Asset()
  • Method Details

    • assetId

      public Asset assetId​(UUID assetId)
    • getAssetId

      public UUID getAssetId()
      The Xero-generated Id for the asset
      Returns:
      assetId
    • setAssetId

      public void setAssetId​(UUID assetId)
    • assetName

      public Asset assetName​(String assetName)
    • getAssetName

      public String getAssetName()
      The name of the asset
      Returns:
      assetName
    • setAssetName

      public void setAssetName​(String assetName)
    • assetTypeId

      public Asset assetTypeId​(UUID assetTypeId)
    • getAssetTypeId

      public UUID getAssetTypeId()
      The Xero-generated Id for the asset type
      Returns:
      assetTypeId
    • setAssetTypeId

      public void setAssetTypeId​(UUID assetTypeId)
    • assetNumber

      public Asset assetNumber​(String assetNumber)
    • getAssetNumber

      public String getAssetNumber()
      Must be unique.
      Returns:
      assetNumber
    • setAssetNumber

      public void setAssetNumber​(String assetNumber)
    • purchaseDate

      public Asset purchaseDate​(org.threeten.bp.LocalDate 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

      public Asset purchasePrice​(Double purchasePrice)
    • getPurchasePrice

      public Double getPurchasePrice()
      The purchase price of the asset
      Returns:
      purchasePrice
    • setPurchasePrice

      public void setPurchasePrice​(Double purchasePrice)
    • disposalPrice

      public Asset disposalPrice​(Double disposalPrice)
    • getDisposalPrice

      public Double getDisposalPrice()
      The price the asset was disposed at
      Returns:
      disposalPrice
    • setDisposalPrice

      public void setDisposalPrice​(Double disposalPrice)
    • assetStatus

      public Asset assetStatus​(AssetStatus assetStatus)
    • getAssetStatus

      public AssetStatus getAssetStatus()
      Get assetStatus
      Returns:
      assetStatus
    • setAssetStatus

      public void setAssetStatus​(AssetStatus assetStatus)
    • warrantyExpiryDate

      public Asset warrantyExpiryDate​(String warrantyExpiryDate)
    • getWarrantyExpiryDate

      public String getWarrantyExpiryDate()
      The date the asset’s warranty expires (if needed) YYYY-MM-DD
      Returns:
      warrantyExpiryDate
    • setWarrantyExpiryDate

      public void setWarrantyExpiryDate​(String warrantyExpiryDate)
    • serialNumber

      public Asset serialNumber​(String serialNumber)
    • getSerialNumber

      public String getSerialNumber()
      The asset's serial number
      Returns:
      serialNumber
    • setSerialNumber

      public void setSerialNumber​(String serialNumber)
    • bookDepreciationSetting

      public Asset bookDepreciationSetting​(BookDepreciationSetting bookDepreciationSetting)
    • getBookDepreciationSetting

      public BookDepreciationSetting getBookDepreciationSetting()
      Get bookDepreciationSetting
      Returns:
      bookDepreciationSetting
    • setBookDepreciationSetting

      public void setBookDepreciationSetting​(BookDepreciationSetting bookDepreciationSetting)
    • bookDepreciationDetail

      public Asset bookDepreciationDetail​(BookDepreciationDetail bookDepreciationDetail)
    • getBookDepreciationDetail

      public BookDepreciationDetail getBookDepreciationDetail()
      Get bookDepreciationDetail
      Returns:
      bookDepreciationDetail
    • setBookDepreciationDetail

      public void setBookDepreciationDetail​(BookDepreciationDetail bookDepreciationDetail)
    • canRollback

      public Asset canRollback​(Boolean canRollback)
    • 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)
    • accountingBookValue

      public Asset accountingBookValue​(Double accountingBookValue)
    • getAccountingBookValue

      public Double getAccountingBookValue()
      The accounting value of the asset
      Returns:
      accountingBookValue
    • setAccountingBookValue

      public void setAccountingBookValue​(Double accountingBookValue)
    • isDeleteEnabledForDate

      public Asset isDeleteEnabledForDate​(Boolean isDeleteEnabledForDate)
    • getIsDeleteEnabledForDate

      public Boolean getIsDeleteEnabledForDate()
      Boolean to indicate whether delete is enabled
      Returns:
      isDeleteEnabledForDate
    • setIsDeleteEnabledForDate

      public void setIsDeleteEnabledForDate​(Boolean isDeleteEnabledForDate)
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object