Class Tax

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

public class Tax extends com.google.api.client.json.GenericJson implements ConvertibleContent
System-wide taxes for invoices.
See Also:
  • Constructor Details

    • Tax

      public Tax()
  • Method Details

    • getId

      public long getId()
      Get the unique identifier of this tax within this business.
      Returns:
    • getAccountingSystemId

      public String getAccountingSystemId()
      Get unique identifier of business tax exists on.
      Returns:
      Accounting System Id
    • getAmount

      public BigDecimal getAmount()
      Decimal representing percentage value of tax.
      Returns:
    • setAmount

      public void setAmount(BigDecimal amount)
      Decimal representing percentage value of tax.
      Parameters:
      amount -
    • getName

      public String getName()
      Identifiable name for the tax.
      Returns:
      e.g. "GST"
    • setName

      public void setName(String name)
      Identifiable name for the tax.
      Parameters:
      name - e.g. "GST"
    • getNumber

      public String getNumber()
      An external number that identifies your tax submission.
      Returns:
    • setNumber

      public void setNumber(String number)
      An external number that identifies your tax submission.
      Parameters:
      number -
    • getTaxId

      public long getTaxId()
      Duplicate of id.
      Returns:
    • 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
    • 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: