Class AssetType

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

public class AssetType
extends Object
AssetType
  • Constructor Details

    • AssetType

      public AssetType()
  • Method Details

    • assetTypeId

      public AssetType assetTypeId​(UUID assetTypeId)
    • getAssetTypeId

      public UUID getAssetTypeId()
      Xero generated unique identifier for asset types
      Returns:
      assetTypeId
    • setAssetTypeId

      public void setAssetTypeId​(UUID assetTypeId)
    • assetTypeName

      public AssetType assetTypeName​(String assetTypeName)
    • getAssetTypeName

      public String getAssetTypeName()
      The name of the asset type
      Returns:
      assetTypeName
    • setAssetTypeName

      public void setAssetTypeName​(String assetTypeName)
    • fixedAssetAccountId

      public AssetType fixedAssetAccountId​(UUID fixedAssetAccountId)
    • getFixedAssetAccountId

      public UUID getFixedAssetAccountId()
      The asset account for fixed assets of this type
      Returns:
      fixedAssetAccountId
    • setFixedAssetAccountId

      public void setFixedAssetAccountId​(UUID fixedAssetAccountId)
    • depreciationExpenseAccountId

      public AssetType depreciationExpenseAccountId​(UUID depreciationExpenseAccountId)
    • getDepreciationExpenseAccountId

      public UUID getDepreciationExpenseAccountId()
      The expense account for the depreciation of fixed assets of this type
      Returns:
      depreciationExpenseAccountId
    • setDepreciationExpenseAccountId

      public void setDepreciationExpenseAccountId​(UUID depreciationExpenseAccountId)
    • accumulatedDepreciationAccountId

      public AssetType accumulatedDepreciationAccountId​(UUID accumulatedDepreciationAccountId)
    • getAccumulatedDepreciationAccountId

      public UUID getAccumulatedDepreciationAccountId()
      The account for accumulated depreciation of fixed assets of this type
      Returns:
      accumulatedDepreciationAccountId
    • setAccumulatedDepreciationAccountId

      public void setAccumulatedDepreciationAccountId​(UUID accumulatedDepreciationAccountId)
    • bookDepreciationSetting

      public AssetType bookDepreciationSetting​(BookDepreciationSetting bookDepreciationSetting)
    • getBookDepreciationSetting

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

      public void setBookDepreciationSetting​(BookDepreciationSetting bookDepreciationSetting)
    • locks

      public AssetType locks​(Integer locks)
    • getLocks

      public Integer getLocks()
      All asset types that have accumulated depreciation for any assets that use them are deemed ‘locked’ and cannot be removed.
      Returns:
      locks
    • setLocks

      public void setLocks​(Integer locks)
    • 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