Class BookDepreciationSetting


  • public class BookDepreciationSetting
    extends Object
    BookDepreciationSetting
    • Constructor Detail

      • BookDepreciationSetting

        public BookDepreciationSetting()
    • Method Detail

      • setDepreciationMethod

        public void setDepreciationMethod​(BookDepreciationSetting.DepreciationMethodEnum depreciationMethod)
        The method of depreciation applied to this asset. See Depreciation Methods
        Parameters:
        depreciationMethod - DepreciationMethodEnum
      • setAveragingMethod

        public void setAveragingMethod​(BookDepreciationSetting.AveragingMethodEnum averagingMethod)
        The method of averaging applied to this asset. See Averaging Methods
        Parameters:
        averagingMethod - AveragingMethodEnum
      • depreciationRate

        public BookDepreciationSetting depreciationRate​(Double depreciationRate)
        The rate of depreciation (e.g. 0.05)
        Parameters:
        depreciationRate - Double
        Returns:
        BookDepreciationSetting
      • getDepreciationRate

        public Double getDepreciationRate()
        The rate of depreciation (e.g. 0.05)
        Returns:
        depreciationRate
      • setDepreciationRate

        public void setDepreciationRate​(Double depreciationRate)
        The rate of depreciation (e.g. 0.05)
        Parameters:
        depreciationRate - Double
      • effectiveLifeYears

        public BookDepreciationSetting effectiveLifeYears​(Integer effectiveLifeYears)
        Effective life of the asset in years (e.g. 5)
        Parameters:
        effectiveLifeYears - Integer
        Returns:
        BookDepreciationSetting
      • getEffectiveLifeYears

        public Integer getEffectiveLifeYears()
        Effective life of the asset in years (e.g. 5)
        Returns:
        effectiveLifeYears
      • setEffectiveLifeYears

        public void setEffectiveLifeYears​(Integer effectiveLifeYears)
        Effective life of the asset in years (e.g. 5)
        Parameters:
        effectiveLifeYears - Integer
      • setDepreciationCalculationMethod

        public void setDepreciationCalculationMethod​(BookDepreciationSetting.DepreciationCalculationMethodEnum depreciationCalculationMethod)
        See Depreciation Calculation Methods
        Parameters:
        depreciationCalculationMethod - DepreciationCalculationMethodEnum
      • depreciableObjectId

        public BookDepreciationSetting depreciableObjectId​(UUID depreciableObjectId)
        Unique Xero identifier for the depreciable object
        Parameters:
        depreciableObjectId - UUID
        Returns:
        BookDepreciationSetting
      • getDepreciableObjectId

        public UUID getDepreciableObjectId()
        Unique Xero identifier for the depreciable object
        Returns:
        depreciableObjectId
      • setDepreciableObjectId

        public void setDepreciableObjectId​(UUID depreciableObjectId)
        Unique Xero identifier for the depreciable object
        Parameters:
        depreciableObjectId - UUID
      • depreciableObjectType

        public BookDepreciationSetting depreciableObjectType​(String depreciableObjectType)
        The type of asset object
        Parameters:
        depreciableObjectType - String
        Returns:
        BookDepreciationSetting
      • getDepreciableObjectType

        public String getDepreciableObjectType()
        The type of asset object
        Returns:
        depreciableObjectType
      • setDepreciableObjectType

        public void setDepreciableObjectType​(String depreciableObjectType)
        The type of asset object
        Parameters:
        depreciableObjectType - String
      • bookEffectiveDateOfChangeId

        public BookDepreciationSetting bookEffectiveDateOfChangeId​(UUID bookEffectiveDateOfChangeId)
        Unique Xero identifier for the effective date change
        Parameters:
        bookEffectiveDateOfChangeId - UUID
        Returns:
        BookDepreciationSetting
      • getBookEffectiveDateOfChangeId

        public UUID getBookEffectiveDateOfChangeId()
        Unique Xero identifier for the effective date change
        Returns:
        bookEffectiveDateOfChangeId
      • setBookEffectiveDateOfChangeId

        public void setBookEffectiveDateOfChangeId​(UUID bookEffectiveDateOfChangeId)
        Unique Xero identifier for the effective date change
        Parameters:
        bookEffectiveDateOfChangeId - UUID
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object