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
All Implemented Interfaces:
Cloneable, Map<String,Object>

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.
  • Constructor Details

    • Identity

      public Identity()
  • Method Details

    • getIdentityId

      public long getIdentityId()
      The identity's unique id.
      Returns:
    • getIdentityUUID

      public String getIdentityUUID()
      UUID of the identity. FreshBooks will be moving from id to identity_uuid in future API calls.
      Returns:
    • getFirstName

      public String getFirstName()
      The identity's first name.
      Returns:
    • getLastName

      public String getLastName()
      The identity's last name.
      Returns:
    • getEmail

      public String getEmail()
      The identity's email.
      Returns:
    • getLanguage

      public String getLanguage()
      The language used by the identity in FreshBooks.
      Returns:
    • getConfirmedAt

      public ZonedDateTime getConfirmedAt()
      Date the identity confirmed their email.
      Returns:
    • getCreatedAt

      public ZonedDateTime getCreatedAt()
      Date the identity was created.
      Returns:
    • getBusinessMemberships

      public List<Identity.BusinessMembership> getBusinessMemberships()
      List of businesses this identity is a part of and their role in each.
      Returns: