Class BookDepreciationDetail

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

public class BookDepreciationDetail
extends Object
BookDepreciationDetail
  • Constructor Details

    • BookDepreciationDetail

      public BookDepreciationDetail()
  • Method Details

    • currentCapitalGain

      public BookDepreciationDetail currentCapitalGain​(Double currentCapitalGain)
    • getCurrentCapitalGain

      public Double getCurrentCapitalGain()
      When an asset is disposed, this will be the sell price minus the purchase price if a profit was made.
      Returns:
      currentCapitalGain
    • setCurrentCapitalGain

      public void setCurrentCapitalGain​(Double currentCapitalGain)
    • currentGainLoss

      public BookDepreciationDetail currentGainLoss​(Double currentGainLoss)
    • getCurrentGainLoss

      public Double getCurrentGainLoss()
      When an asset is disposed, this will be the lowest one of sell price or purchase price, minus the current book value.
      Returns:
      currentGainLoss
    • setCurrentGainLoss

      public void setCurrentGainLoss​(Double currentGainLoss)
    • depreciationStartDate

      public BookDepreciationDetail depreciationStartDate​(org.threeten.bp.LocalDate depreciationStartDate)
    • getDepreciationStartDate

      public org.threeten.bp.LocalDate getDepreciationStartDate()
      YYYY-MM-DD
      Returns:
      depreciationStartDate
    • setDepreciationStartDate

      public void setDepreciationStartDate​(org.threeten.bp.LocalDate depreciationStartDate)
    • costLimit

      public BookDepreciationDetail costLimit​(Double costLimit)
    • getCostLimit

      public Double getCostLimit()
      The value of the asset you want to depreciate, if this is less than the cost of the asset.
      Returns:
      costLimit
    • setCostLimit

      public void setCostLimit​(Double costLimit)
    • residualValue

      public BookDepreciationDetail residualValue​(Double residualValue)
    • getResidualValue

      public Double getResidualValue()
      The value of the asset remaining when you've fully depreciated it.
      Returns:
      residualValue
    • setResidualValue

      public void setResidualValue​(Double residualValue)
    • priorAccumDepreciationAmount

      public BookDepreciationDetail priorAccumDepreciationAmount​(Double priorAccumDepreciationAmount)
    • getPriorAccumDepreciationAmount

      public Double getPriorAccumDepreciationAmount()
      All depreciation prior to the current financial year.
      Returns:
      priorAccumDepreciationAmount
    • setPriorAccumDepreciationAmount

      public void setPriorAccumDepreciationAmount​(Double priorAccumDepreciationAmount)
    • currentAccumDepreciationAmount

      public BookDepreciationDetail currentAccumDepreciationAmount​(Double currentAccumDepreciationAmount)
    • getCurrentAccumDepreciationAmount

      public Double getCurrentAccumDepreciationAmount()
      All depreciation occurring in the current financial year.
      Returns:
      currentAccumDepreciationAmount
    • setCurrentAccumDepreciationAmount

      public void setCurrentAccumDepreciationAmount​(Double currentAccumDepreciationAmount)
    • 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