Class OtherIncome

java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
net.amcintosh.freshbooks.models.OtherIncome
All Implemented Interfaces:
Cloneable, Map<String,Object>, ConvertibleContent

public class OtherIncome extends com.google.api.client.json.GenericJson implements ConvertibleContent
Other Income is for recording income that doesn't require an invoice and is received through other means.
See Also:
  • Constructor Details

    • OtherIncome

      public OtherIncome()
  • Method Details

    • getIncomeId

      public long getIncomeId()
      Get the unique identifier of this income within this business.
      Returns:
      id
    • getDate

      public LocalDate getDate()
      Get the date the income was received.
      Returns:
      date
    • setDate

      public void setDate(LocalDate date)
      Set the date the income was received.
      Parameters:
      date - of income transaction
    • getNote

      public String getNote()
      Descriptive text for other income.
      Returns:
      E.g. "Cool beans!"
    • setNote

      public void setNote(String note)
      Descriptive text for other income.
      Parameters:
      note - E.g. "Cool beans!"
    • getCategory

      public OtherIncomeCategory getCategory()
      Get category for other income.
      Returns:
      Enum of the other income category
    • setCategory

      public void setCategory(OtherIncomeCategory category)
      Set category for other income.
      Parameters:
      category - Category value
    • getPaymentType

      public String getPaymentType()
      Type of payment.
      Returns:
      E.g. "Check", "Credit", "Cash", etc.
    • setPaymentType

      public void setPaymentType(String paymentType)
      Type of payment.
      Parameters:
      paymentType - E.g. "Check", "Credit", "Cash", etc.
    • getSourceId

      public long getSourceId()
      Get the unique identifier of source of external income.
      Returns:
      id
    • getSource

      public String getSource()
      Source of external income.
      Returns:
      E.g. Shopify, Etsy, Farmers’ Market
    • setSource

      public void setSource(String source)
      Source of external income.
      Parameters:
      source - E.g. Shopify, Etsy, Farmers’ Market
    • getAmount

      public Money getAmount()
      Amount of external income.
      Returns:
      Money
    • setAmount

      public void setAmount(Money money)
      Amount of external income.
      Parameters:
      money - Amount of external income
    • getUserId

      public long getUserId()
      Get the unique identifier of user.
      Returns:
      id
    • getTaxes

      public List<Tax> getTaxes()
      List of taxes of external income.
      Returns:
      List of Taxes
    • setTaxes

      public void setTaxes(List<Tax> taxes)
      List of taxes of external income.
      Parameters:
      taxes - list of taxes
    • getCreated

      public ZonedDateTime getCreated()
      Get the time of first creation.

      Note: The API returns this data in "US/Eastern", but it is converted to UTC.
      Returns:
      Created time in UTC
    • getUpdated

      public ZonedDateTime getUpdated()
      Get the time of last modification.

      Note: The API returns this data in "US/Eastern", but it is converted to UTC.
      Returns:
      Updated time in UTC
    • getVisState

      public VisState getVisState()
      Get the visibility state: active, deleted, or archived

      Returns:
      Enum of the visibility state.
      See Also:
    • setVisState

      public void setVisState(VisState visState)
      Set the visibility state of the item.

      Parameters:
      visState - VisState value
      See Also:
    • getContent

      public Map<String,Object> getContent()
      Description copied from interface: ConvertibleContent
      Return the objects values as a Map suitable to sending to FreshBooks in a POST or PUT request.
      Specified by:
      getContent in interface ConvertibleContent
      Returns: