java.lang.Object
com.intercom.api.resources.contacts.types.Contact

public final class Contact extends Object
  • Method Details

    • getType

      public Optional<String> getType()
      Returns:
      The type of object.
    • getId

      public String getId()
      Returns:
      The unique identifier for the contact which is given by Intercom.
    • getExternalId

      public Optional<String> getExternalId()
      Returns:
      The unique identifier for the contact which is provided by the Client.
    • getWorkspaceId

      public String getWorkspaceId()
      Returns:
      The id of the workspace which the contact belongs to.
    • getRole

      public String getRole()
      Returns:
      The role of the contact.
    • getEmail

      public Optional<String> getEmail()
      Returns:
      The contact's email.
    • getEmailDomain

      public Optional<String> getEmailDomain()
      Returns:
      The contact's email domain.
    • getPhone

      public Optional<String> getPhone()
      Returns:
      The contacts phone.
    • getFormattedPhone

      public Optional<String> getFormattedPhone()
      Returns:
      The contacts phone number normalized to the E164 format
    • getName

      public Optional<String> getName()
      Returns:
      The contacts name.
    • getOwnerId

      public Optional<Integer> getOwnerId()
      Returns:
      The id of an admin that has been assigned account ownership of the contact.
    • getHasHardBounced

      public boolean getHasHardBounced()
      Returns:
      Whether the contact has had an email sent to them hard bounce.
    • getMarkedEmailAsSpam

      public boolean getMarkedEmailAsSpam()
      Returns:
      Whether the contact has marked an email sent to them as spam.
    • getUnsubscribedFromEmails

      public boolean getUnsubscribedFromEmails()
      Returns:
      Whether the contact is unsubscribed from emails.
    • getCreatedAt

      public int getCreatedAt()
      Returns:
      (UNIX timestamp) The time when the contact was created.
    • getUpdatedAt

      public int getUpdatedAt()
      Returns:
      (UNIX timestamp) The time when the contact was last updated.
    • getSignedUpAt

      public Optional<Integer> getSignedUpAt()
      Returns:
      (UNIX timestamp) The time specified for when a contact signed up.
    • getLastSeenAt

      public Optional<Integer> getLastSeenAt()
      Returns:
      (UNIX timestamp) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually).
    • getLastRepliedAt

      public Optional<Integer> getLastRepliedAt()
      Returns:
      (UNIX timestamp) The time when the contact last messaged in.
    • getLastContactedAt

      public Optional<Integer> getLastContactedAt()
      Returns:
      (UNIX timestamp) The time when the contact was last messaged.
    • getLastEmailOpenedAt

      public Optional<Integer> getLastEmailOpenedAt()
      Returns:
      (UNIX timestamp) The time when the contact last opened an email.
    • getLastEmailClickedAt

      public Optional<Integer> getLastEmailClickedAt()
      Returns:
      (UNIX timestamp) The time when the contact last clicked a link in an email.
    • getLanguageOverride

      public Optional<String> getLanguageOverride()
      Returns:
      A preferred language setting for the contact, used by the Intercom Messenger even if their browser settings change.
    • getBrowser

      public Optional<String> getBrowser()
      Returns:
      The name of the browser which the contact is using.
    • getBrowserVersion

      public Optional<String> getBrowserVersion()
      Returns:
      The version of the browser which the contact is using.
    • getBrowserLanguage

      public Optional<String> getBrowserLanguage()
      Returns:
      The language set by the browser which the contact is using.
    • getOs

      public Optional<String> getOs()
      Returns:
      The operating system which the contact is using.
    • getAndroidAppName

      public Optional<String> getAndroidAppName()
      Returns:
      The name of the Android app which the contact is using.
    • getAndroidAppVersion

      public Optional<String> getAndroidAppVersion()
      Returns:
      The version of the Android app which the contact is using.
    • getAndroidDevice

      public Optional<String> getAndroidDevice()
      Returns:
      The Android device which the contact is using.
    • getAndroidOsVersion

      public Optional<String> getAndroidOsVersion()
      Returns:
      The version of the Android OS which the contact is using.
    • getAndroidSdkVersion

      public Optional<String> getAndroidSdkVersion()
      Returns:
      The version of the Android SDK which the contact is using.
    • getAndroidLastSeenAt

      public Optional<Integer> getAndroidLastSeenAt()
      Returns:
      (UNIX timestamp) The time when the contact was last seen on an Android device.
    • getIosAppName

      public Optional<String> getIosAppName()
      Returns:
      The name of the iOS app which the contact is using.
    • getIosAppVersion

      public Optional<String> getIosAppVersion()
      Returns:
      The version of the iOS app which the contact is using.
    • getIosDevice

      public Optional<String> getIosDevice()
      Returns:
      The iOS device which the contact is using.
    • getIosOsVersion

      public Optional<String> getIosOsVersion()
      Returns:
      The version of iOS which the contact is using.
    • getIosSdkVersion

      public Optional<String> getIosSdkVersion()
      Returns:
      The version of the iOS SDK which the contact is using.
    • getIosLastSeenAt

      public Optional<Integer> getIosLastSeenAt()
      Returns:
      (UNIX timestamp) The last time the contact used the iOS app.
    • getCustomAttributes

      public Optional<Map<String,Object>> getCustomAttributes()
      Returns:
      The custom attributes which are set for the contact.
    • getAvatar

      public Optional<String> getAvatar()
      Returns:
      An image URL containing the avatar of a contact.
    • getTags

      public Optional<ContactTags> getTags()
    • getNotes

      public Optional<ContactNotes> getNotes()
    • getCompanies

      public Optional<ContactCompanies> getCompanies()
    • getLocation

      public ContactLocation getLocation()
    • getSocialProfiles

      public ContactSocialProfiles getSocialProfiles()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Contact.IdStage builder()