Package net.amcintosh.freshbooks.models
Class Identity
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
net.amcintosh.freshbooks.models.Identity
public class Identity
extends com.google.api.client.json.GenericJson
Users are uniquely identified by their email across all of FreshBooks, so if
leafy@example.com is an Owner of one account and gets added as a Client on another,
they will have some access to both. They could then open a second business of their
own, or be added as an employee of another person’s business.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Business/Identity relationshipstatic enum
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 TypeMethodDescriptionList of businesses this identity is a part of and their role in each.Date the identity confirmed their email.Date the identity was created.getEmail()
The identity's email.The identity's first name.long
The identity's unique id.UUID of the identity.The language used by the identity in FreshBooks.The identity's last name.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
-
Identity
public Identity()
-
-
Method Details
-
getIdentityId
public long getIdentityId()The identity's unique id.- Returns:
-
getIdentityUUID
UUID of the identity. FreshBooks will be moving from id to identity_uuid in future API calls.- Returns:
-
getFirstName
The identity's first name.- Returns:
-
getLastName
The identity's last name.- Returns:
-
getEmail
The identity's email.- Returns:
-
getLanguage
The language used by the identity in FreshBooks.- Returns:
-
getConfirmedAt
Date the identity confirmed their email.- Returns:
-
getCreatedAt
Date the identity was created.- Returns:
-
getBusinessMemberships
List of businesses this identity is a part of and their role in each.- Returns:
-