Package net.amcintosh.freshbooks.models
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
The unique id for business.Return the objects values as a Map suitable to sending to FreshBooks in a POST or PUT request.getRate()
The rate for the associated service.long
The unique id of the service this rate applies to.void
setRate
(BigDecimal rate) The rate for the associated service.Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, set, setFactory, toPrettyString, toString
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
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
The rate for the associated service.- Returns:
- Eg. 10.60
-
setRate
The rate for the associated service.- Parameters:
rate
- Eg. 10.60
-
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 interfaceConvertibleContent
- Returns:
-