Class Asset


  • public class Asset
    extends Object
    Asset
    • Constructor Detail

      • Asset

        public Asset()
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object