Class Ticket


  • public final class Ticket
    extends java.lang.Object
    • Method Detail

      • getType

        public java.util.Optional<java.lang.String> getType()
        Returns:
        Always ticket
      • getId

        public java.util.Optional<java.lang.String> getId()
        Returns:
        The unique identifier for the ticket which is given by Intercom.
      • getTicketId

        public java.util.Optional<java.lang.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 java.util.Optional<Ticket.Category> getCategory()
        Returns:
        Category of the Ticket.
      • getTicketState

        public java.util.Optional<TicketState> getTicketState()
      • getTicketType

        public java.util.Optional<TicketType> getTicketType()
      • getContacts

        public java.util.Optional<TicketContacts> getContacts()
      • getAdminAssigneeId

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

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

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

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

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

        public java.util.Optional<java.lang.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 java.util.Optional<LinkedObjectList> getLinkedObjects()
      • getTicketParts

        public java.util.Optional<TicketParts> getTicketParts()
      • getIsShared

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object