Class AsyncTicketing


  • public class AsyncTicketing
    extends java.lang.Object
    • Method Detail

      • sync

        public Ticketing sync()
        Switches to the sync SDK.
        Returns:
        The sync SDK
      • listTickets

        public java.util.concurrent.CompletableFuture<TicketingListTicketsResponse> listTickets​(TicketingListTicketsRequest request)
        List Tickets

        Retrieve a paginated list of tickets.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingListTicketsResponse> - The async response
      • listTickets

        public java.util.concurrent.CompletableFuture<TicketingListTicketsResponse> listTickets​(TicketingListTicketsRequest request,
                                                                                                java.util.Optional<Options> options)
        List Tickets

        Retrieve a paginated list of tickets.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingListTicketsResponse> - The async response
      • createTicket

        public java.util.concurrent.CompletableFuture<TicketingCreateTicketResponse> createTicket​(java.lang.String xAccountId,
                                                                                                  TicketingTicketCreateRequestDto ticketingTicketCreateRequestDto)
        Create Ticket

        Create a new ticket record.

        Parameters:
        xAccountId - The account identifier
        ticketingTicketCreateRequestDto -
        Returns:
        CompletableFuture<TicketingCreateTicketResponse> - The async response
      • createTicket

        public java.util.concurrent.CompletableFuture<TicketingCreateTicketResponse> createTicket​(java.lang.String xAccountId,
                                                                                                  TicketingTicketCreateRequestDto ticketingTicketCreateRequestDto,
                                                                                                  java.util.Optional<Options> options)
        Create Ticket

        Create a new ticket record.

        Parameters:
        xAccountId - The account identifier
        ticketingTicketCreateRequestDto -
        options - additional options
        Returns:
        CompletableFuture<TicketingCreateTicketResponse> - The async response
      • getTicket

        public java.util.concurrent.CompletableFuture<TicketingGetTicketResponse> getTicket​(TicketingGetTicketRequest request)
        Get Ticket

        Retrieve a single ticket by its identifier.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingGetTicketResponse> - The async response
      • getTicket

        public java.util.concurrent.CompletableFuture<TicketingGetTicketResponse> getTicket​(TicketingGetTicketRequest request,
                                                                                            java.util.Optional<Options> options)
        Get Ticket

        Retrieve a single ticket by its identifier.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingGetTicketResponse> - The async response
      • updateTicket

        public java.util.concurrent.CompletableFuture<TicketingUpdateTicketResponse> updateTicket​(java.lang.String xAccountId,
                                                                                                  java.lang.String id,
                                                                                                  TicketingTicketUpdateRequestDto ticketingTicketUpdateRequestDto)
        Update Ticket

        Update an existing ticket record by its identifier.

        Parameters:
        xAccountId - The account identifier
        id -
        ticketingTicketUpdateRequestDto -
        Returns:
        CompletableFuture<TicketingUpdateTicketResponse> - The async response
      • updateTicket

        public java.util.concurrent.CompletableFuture<TicketingUpdateTicketResponse> updateTicket​(java.lang.String xAccountId,
                                                                                                  java.lang.String id,
                                                                                                  TicketingTicketUpdateRequestDto ticketingTicketUpdateRequestDto,
                                                                                                  java.util.Optional<Options> options)
        Update Ticket

        Update an existing ticket record by its identifier.

        Parameters:
        xAccountId - The account identifier
        id -
        ticketingTicketUpdateRequestDto -
        options - additional options
        Returns:
        CompletableFuture<TicketingUpdateTicketResponse> - The async response
      • listUsers

        public java.util.concurrent.CompletableFuture<TicketingListUsersResponse> listUsers​(TicketingListUsersRequest request)
        List Users

        Retrieve a paginated list of users.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingListUsersResponse> - The async response
      • listUsers

        public java.util.concurrent.CompletableFuture<TicketingListUsersResponse> listUsers​(TicketingListUsersRequest request,
                                                                                            java.util.Optional<Options> options)
        List Users

        Retrieve a paginated list of users.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingListUsersResponse> - The async response
      • getUser

        public java.util.concurrent.CompletableFuture<TicketingGetUserResponse> getUser​(TicketingGetUserRequest request)
        Get User

        Retrieve a single user by their identifier.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingGetUserResponse> - The async response
      • getUser

        public java.util.concurrent.CompletableFuture<TicketingGetUserResponse> getUser​(TicketingGetUserRequest request,
                                                                                        java.util.Optional<Options> options)
        Get User

        Retrieve a single user by their identifier.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingGetUserResponse> - The async response
      • listComments

        public java.util.concurrent.CompletableFuture<TicketingListCommentsResponse> listComments​(TicketingListCommentsRequest request)
        List Comments

        Retrieve a paginated list of comments for a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingListCommentsResponse> - The async response
      • listComments

        public java.util.concurrent.CompletableFuture<TicketingListCommentsResponse> listComments​(TicketingListCommentsRequest request,
                                                                                                  java.util.Optional<Options> options)
        List Comments

        Retrieve a paginated list of comments for a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingListCommentsResponse> - The async response
      • getComment

        public TicketingGetCommentRequestBuilder getComment()
        Get Comment

        Retrieve a single comment by its identifier for a ticket.

        Returns:
        The async call builder
      • getComment

        public java.util.concurrent.CompletableFuture<TicketingGetCommentResponse> getComment​(TicketingGetCommentRequest request)
        Get Comment

        Retrieve a single comment by its identifier for a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingGetCommentResponse> - The async response
      • getComment

        public java.util.concurrent.CompletableFuture<TicketingGetCommentResponse> getComment​(TicketingGetCommentRequest request,
                                                                                              java.util.Optional<Options> options)
        Get Comment

        Retrieve a single comment by its identifier for a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingGetCommentResponse> - The async response
      • downloadTicketingAttachment

        public java.util.concurrent.CompletableFuture<TicketingDownloadTicketingAttachmentResponse> downloadTicketingAttachment​(TicketingDownloadTicketingAttachmentRequest request)
        Download Attachment

        Download the attachment file from a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingDownloadTicketingAttachmentResponse> - The async response
      • downloadTicketingAttachment

        public java.util.concurrent.CompletableFuture<TicketingDownloadTicketingAttachmentResponse> downloadTicketingAttachment​(TicketingDownloadTicketingAttachmentRequest request,
                                                                                                                                java.util.Optional<Options> options)
        Download Attachment

        Download the attachment file from a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingDownloadTicketingAttachmentResponse> - The async response
      • listAttachments

        public TicketingListAttachmentsRequestBuilder listAttachments()
        List Attachments

        Retrieve a paginated list of attachment details for a ticket.

        Returns:
        The async call builder
      • listAttachments

        public java.util.concurrent.CompletableFuture<TicketingListAttachmentsResponse> listAttachments​(TicketingListAttachmentsRequest request)
        List Attachments

        Retrieve a paginated list of attachment details for a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingListAttachmentsResponse> - The async response
      • listAttachments

        public java.util.concurrent.CompletableFuture<TicketingListAttachmentsResponse> listAttachments​(TicketingListAttachmentsRequest request,
                                                                                                        java.util.Optional<Options> options)
        List Attachments

        Retrieve a paginated list of attachment details for a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingListAttachmentsResponse> - The async response
      • getAttachment

        public TicketingGetAttachmentRequestBuilder getAttachment()
        Get Attachment

        Retrieve the details of a single attachment for a ticket.

        Returns:
        The async call builder
      • getAttachment

        public java.util.concurrent.CompletableFuture<TicketingGetAttachmentResponse> getAttachment​(TicketingGetAttachmentRequest request)
        Get Attachment

        Retrieve the details of a single attachment for a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingGetAttachmentResponse> - The async response
      • getAttachment

        public java.util.concurrent.CompletableFuture<TicketingGetAttachmentResponse> getAttachment​(TicketingGetAttachmentRequest request,
                                                                                                    java.util.Optional<Options> options)
        Get Attachment

        Retrieve the details of a single attachment for a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingGetAttachmentResponse> - The async response
      • listTicketTypes

        public java.util.concurrent.CompletableFuture<TicketingListTicketTypesResponse> listTicketTypes​(TicketingListTicketTypesRequest request)
        List Ticket Types

        Retrieve a paginated list of all ticket types.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingListTicketTypesResponse> - The async response
      • listTicketTypes

        public java.util.concurrent.CompletableFuture<TicketingListTicketTypesResponse> listTicketTypes​(TicketingListTicketTypesRequest request,
                                                                                                        java.util.Optional<Options> options)
        List Ticket Types

        Retrieve a paginated list of all ticket types.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingListTicketTypesResponse> - The async response
      • getTicketType

        public java.util.concurrent.CompletableFuture<TicketingGetTicketTypeResponse> getTicketType​(TicketingGetTicketTypeRequest request)
        Get Ticket Type

        Retrieve a single ticket type by its identifier.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingGetTicketTypeResponse> - The async response
      • getTicketType

        public java.util.concurrent.CompletableFuture<TicketingGetTicketTypeResponse> getTicketType​(TicketingGetTicketTypeRequest request,
                                                                                                    java.util.Optional<Options> options)
        Get Ticket Type

        Retrieve a single ticket type by its identifier.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingGetTicketTypeResponse> - The async response
      • listProjects

        public java.util.concurrent.CompletableFuture<TicketingListProjectsResponse> listProjects​(TicketingListProjectsRequest request)
        List Projects

        Retrieve a paginated list of projects.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingListProjectsResponse> - The async response
      • listProjects

        public java.util.concurrent.CompletableFuture<TicketingListProjectsResponse> listProjects​(TicketingListProjectsRequest request,
                                                                                                  java.util.Optional<Options> options)
        List Projects

        Retrieve a paginated list of projects.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingListProjectsResponse> - The async response
      • getProject

        public java.util.concurrent.CompletableFuture<TicketingGetProjectResponse> getProject​(TicketingGetProjectRequest request)
        Get Project

        Retrieve a single project by its identifier.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingGetProjectResponse> - The async response
      • getProject

        public java.util.concurrent.CompletableFuture<TicketingGetProjectResponse> getProject​(TicketingGetProjectRequest request,
                                                                                              java.util.Optional<Options> options)
        Get Project

        Retrieve a single project by its identifier.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingGetProjectResponse> - The async response
      • listProjectComponents

        public java.util.concurrent.CompletableFuture<TicketingListProjectComponentsResponse> listProjectComponents​(TicketingListProjectComponentsRequest request)
        List Project Components

        Retrieve a paginated list of project components.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingListProjectComponentsResponse> - The async response
      • listProjectComponents

        public java.util.concurrent.CompletableFuture<TicketingListProjectComponentsResponse> listProjectComponents​(TicketingListProjectComponentsRequest request,
                                                                                                                    java.util.Optional<Options> options)
        List Project Components

        Retrieve a paginated list of project components.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingListProjectComponentsResponse> - The async response
      • getProjectComponent

        public java.util.concurrent.CompletableFuture<TicketingGetProjectComponentResponse> getProjectComponent​(TicketingGetProjectComponentRequest request)
        Get Project Component

        Retrieve a single project component by its identifier.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingGetProjectComponentResponse> - The async response
      • getProjectComponent

        public java.util.concurrent.CompletableFuture<TicketingGetProjectComponentResponse> getProjectComponent​(TicketingGetProjectComponentRequest request,
                                                                                                                java.util.Optional<Options> options)
        Get Project Component

        Retrieve a single project component by its identifier.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingGetProjectComponentResponse> - The async response
      • listProjectTicketTypes

        public java.util.concurrent.CompletableFuture<TicketingListProjectTicketTypesResponse> listProjectTicketTypes​(TicketingListProjectTicketTypesRequest request)
        List Project Ticket Types

        Retrieve a paginated list of ticket types for a project.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingListProjectTicketTypesResponse> - The async response
      • listProjectTicketTypes

        public java.util.concurrent.CompletableFuture<TicketingListProjectTicketTypesResponse> listProjectTicketTypes​(TicketingListProjectTicketTypesRequest request,
                                                                                                                      java.util.Optional<Options> options)
        List Project Ticket Types

        Retrieve a paginated list of ticket types for a project.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingListProjectTicketTypesResponse> - The async response
      • listTicketStatuses

        public java.util.concurrent.CompletableFuture<TicketingListTicketStatusesResponse> listTicketStatuses​(TicketingListTicketStatusesRequest request)
        List Ticket Statuses

        Retrieve a paginated list of statuses for a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<TicketingListTicketStatusesResponse> - The async response
      • listTicketStatuses

        public java.util.concurrent.CompletableFuture<TicketingListTicketStatusesResponse> listTicketStatuses​(TicketingListTicketStatusesRequest request,
                                                                                                              java.util.Optional<Options> options)
        List Ticket Statuses

        Retrieve a paginated list of statuses for a ticket.

        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<TicketingListTicketStatusesResponse> - The async response