Class Service

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

public class Service extends com.google.api.client.json.GenericJson implements ConvertibleContent
Services represent things that a business offers to clients. Services are added to projects to to allow tracking of time entries by type of work. Services keep track of details such as hourly rate. See ServiceRate for adding a rate to a service.
Services automatically get converted to tasks for inclusion on invoices.
See Also:
  • Constructor Details

    • Service

      public Service()
  • Method Details

    • getId

      public long getId()
      The unique id of the service.
      Returns:
    • getBusinessId

      public long getBusinessId()
      The unique id for business.
      Returns:
    • getName

      public String getName()
      The descriptive name of service.
      Returns:
    • setName

      public void setName(String name)
      The descriptive name of service.
      Parameters:
      name -
    • isBillable

      public boolean isBillable()
      Whether the service is billable to clients or not.
      Returns:
    • setBillable

      public void setBillable(boolean billable)
      Whether the service is billable to clients or not.
      Parameters:
      billable -
    • 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 client.

      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: