Class ServiceRate

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

public class ServiceRate extends com.google.api.client.json.GenericJson implements ConvertibleContent
ServiceRates are hourly rates that can be applied to services to allow billing of time entries tracked against that service.
See Also:
  • Constructor Details

    • ServiceRate

      public ServiceRate()
  • Method Details

    • getServiceId

      public long getServiceId()
      The unique id of the service this rate applies to.
      Returns:
    • getBusinessId

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

      public BigDecimal getRate()
      The rate for the associated service.
      Returns:
      Eg. 10.60
    • setRate

      public void setRate(BigDecimal rate)
      The rate for the associated service.
      Parameters:
      rate - Eg. 10.60
    • 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: