java.lang.Object
com.intercom.api.resources.tickets.types.Ticket

public final class Ticket extends Object
  • Method Details

    • getType

      public String getType()
      Returns:
      Always ticket
    • getId

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

      public String getTicketId()
      Returns:
      The ID of the Ticket used in the Intercom Inbox and Messenger. Do not use ticket_id for API queries.
    • getCategory

      public Ticket.Category getCategory()
      Returns:
      Category of the Ticket.
    • getTicketAttributes

      public Map<String,Object> getTicketAttributes()
    • getTicketState

      public Ticket.TicketState getTicketState()
      Returns:
      The state the ticket is currently in
    • getTicketType

      public TicketType getTicketType()
    • getContacts

      public TicketContacts getContacts()
    • getAdminAssigneeId

      public Optional<String> getAdminAssigneeId()
      Returns:
      The id representing the admin assigned to the ticket.
    • getTeamAssigneeId

      public Optional<String> getTeamAssigneeId()
      Returns:
      The id representing the team assigned to the ticket.
    • getCreatedAt

      public Optional<Integer> getCreatedAt()
      Returns:
      The time the ticket was created as a UTC Unix timestamp.
    • getUpdatedAt

      public Optional<Integer> getUpdatedAt()
      Returns:
      The last time the ticket was updated as a UTC Unix timestamp.
    • getOpen

      public Optional<Boolean> getOpen()
      Returns:
      Whether or not the ticket is open. If false, the ticket is closed.
    • getSnoozedUntil

      public Optional<Integer> getSnoozedUntil()
      Returns:
      The time the ticket will be snoozed until as a UTC Unix timestamp. If null, the ticket is not currently snoozed.
    • getLinkedObjects

      public Optional<LinkedObjectList> getLinkedObjects()
    • getTicketParts

      public Optional<TicketParts> getTicketParts()
    • getIsShared

      public Optional<Boolean> getIsShared()
      Returns:
      Whether or not the ticket is shared with the customer.
    • getTicketStateInternalLabel

      public Optional<String> getTicketStateInternalLabel()
      Returns:
      The state the ticket is currently in, in a human readable form - visible in Intercom
    • getTicketStateExternalLabel

      public Optional<String> getTicketStateExternalLabel()
      Returns:
      The state the ticket is currently in, in a human readable form - visible to customers, in the messenger, email and tickets portal.
    • 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 Ticket.IdStage builder()