Package net.amcintosh.freshbooks.models
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
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
Services automatically get converted to tasks for inclusion on invoices.
ServiceRate
for adding a rate to a service.
Services automatically get converted to tasks for inclusion on invoices.
- 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.long
getId()
The unique id of the service.getName()
The descriptive name of service.Get the visibility state: active, deleted, or archivedboolean
Whether the service is billable to clients or not.void
setBillable
(boolean billable) Whether the service is billable to clients or not.void
The descriptive name of service.void
setVisState
(VisState visState) Set the visibility state of the client.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
-
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
The descriptive name of service.- Returns:
-
setName
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
Get the visibility state: active, deleted, or archived- Returns:
- Enum of the visibility state.
- See Also:
-
setVisState
Set the visibility state of the client.- Parameters:
visState
- VisState value- See Also:
-
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:
-