Class Ticket


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

      • getId

        public java.util.Optional<java.lang.String> getId()
      • getRemoteId

        public java.util.Optional<java.lang.String> getRemoteId()
        Returns:
        The third-party API ID of the matching object.
      • getCreatedAt

        public java.util.Optional<java.time.OffsetDateTime> getCreatedAt()
        Returns:
        The datetime that this object was created by Merge.
      • getModifiedAt

        public java.util.Optional<java.time.OffsetDateTime> getModifiedAt()
        Returns:
        The datetime that this object was modified by Merge.
      • getName

        public java.util.Optional<java.lang.String> getName()
        Returns:
        The ticket's name.
      • getAssignees

        public java.util.Optional<java.util.List<java.util.Optional<TicketAssigneesItem>>> getAssignees()
      • getCreator

        public java.util.Optional<TicketCreator> getCreator()
        Returns:
        The user who created this ticket.
      • getDueDate

        public java.util.Optional<java.time.OffsetDateTime> getDueDate()
        Returns:
        The ticket's due date.
      • getStatus

        public java.util.Optional<TicketStatus> getStatus()
        Returns:
        The current status of the ticket.
        • OPEN - OPEN
        • CLOSED - CLOSED
        • IN_PROGRESS - IN_PROGRESS
        • ON_HOLD - ON_HOLD
      • getDescription

        public java.util.Optional<java.lang.String> getDescription()
        Returns:
        The ticket’s description. HTML version of description is mapped if supported by the third-party platform.
      • getCollections

        public java.util.Optional<java.util.List<java.util.Optional<TicketCollectionsItem>>> getCollections()
      • getTicketType

        public java.util.Optional<java.lang.String> getTicketType()
        Returns:
        The sub category of the ticket within the 3rd party system. Examples include incident, task, subtask or to-do.
      • getAccount

        public java.util.Optional<TicketAccount> getAccount()
        Returns:
        The account associated with the ticket.
      • getContact

        public java.util.Optional<TicketContact> getContact()
        Returns:
        The contact associated with the ticket.
      • getParentTicket

        public java.util.Optional<TicketParentTicket> getParentTicket()
        Returns:
        The ticket's parent ticket.
      • getAttachments

        public java.util.Optional<java.util.List<java.util.Optional<TicketAttachmentsItem>>> getAttachments()
      • getTags

        public java.util.Optional<java.util.List<java.util.Optional<java.lang.String>>> getTags()
      • getRemoteCreatedAt

        public java.util.Optional<java.time.OffsetDateTime> getRemoteCreatedAt()
        Returns:
        When the third party's ticket was created.
      • getRemoteUpdatedAt

        public java.util.Optional<java.time.OffsetDateTime> getRemoteUpdatedAt()
        Returns:
        When the third party's ticket was updated.
      • getCompletedAt

        public java.util.Optional<java.time.OffsetDateTime> getCompletedAt()
        Returns:
        When the ticket was completed.
      • getRemoteWasDeleted

        public java.util.Optional<java.lang.Boolean> getRemoteWasDeleted()
        Returns:
        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.
      • getTicketUrl

        public java.util.Optional<java.lang.String> getTicketUrl()
        Returns:
        The 3rd party url of the Ticket.
      • getPriority

        public java.util.Optional<TicketPriority> getPriority()
        Returns:
        The priority or urgency of the Ticket.
        • URGENT - URGENT
        • HIGH - HIGH
        • NORMAL - NORMAL
        • LOW - LOW
      • getFieldMappings

        public java.util.Optional<java.util.Map<java.lang.String,​com.fasterxml.jackson.databind.JsonNode>> getFieldMappings()
      • getRemoteData

        public java.util.Optional<java.util.List<RemoteData>> getRemoteData()
      • getRemoteFields

        public java.util.Optional<java.util.List<RemoteField>> getRemoteFields()
      • 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