Class AsyncCrm


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

      • sync

        public Crm sync()
        Switches to the sync SDK.
        Returns:
        The sync SDK
      • listContacts

        public java.util.concurrent.CompletableFuture<CrmListContactsResponse> listContacts​(CrmListContactsRequest request)
        List Contacts
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<CrmListContactsResponse> - The async response
      • listContacts

        public java.util.concurrent.CompletableFuture<CrmListContactsResponse> listContacts​(CrmListContactsRequest request,
                                                                                            java.util.Optional<Options> options)
        List Contacts
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<CrmListContactsResponse> - The async response
      • createContact

        public java.util.concurrent.CompletableFuture<CrmCreateContactResponse> createContact​(java.lang.String xAccountId,
                                                                                              CrmCreateContactRequestDto crmCreateContactRequestDto)
        Create Contact
        Parameters:
        xAccountId - The account identifier
        crmCreateContactRequestDto -
        Returns:
        CompletableFuture<CrmCreateContactResponse> - The async response
      • createContact

        public java.util.concurrent.CompletableFuture<CrmCreateContactResponse> createContact​(java.lang.String xAccountId,
                                                                                              CrmCreateContactRequestDto crmCreateContactRequestDto,
                                                                                              java.util.Optional<Options> options)
        Create Contact
        Parameters:
        xAccountId - The account identifier
        crmCreateContactRequestDto -
        options - additional options
        Returns:
        CompletableFuture<CrmCreateContactResponse> - The async response
      • getContact

        public java.util.concurrent.CompletableFuture<CrmGetContactResponse> getContact​(CrmGetContactRequest request)
        Get Contact
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<CrmGetContactResponse> - The async response
      • getContact

        public java.util.concurrent.CompletableFuture<CrmGetContactResponse> getContact​(CrmGetContactRequest request,
                                                                                        java.util.Optional<Options> options)
        Get Contact
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<CrmGetContactResponse> - The async response
      • updateContact

        public java.util.concurrent.CompletableFuture<CrmUpdateContactResponse> updateContact​(java.lang.String xAccountId,
                                                                                              java.lang.String id,
                                                                                              CrmCreateContactRequestDto crmCreateContactRequestDto)
        Update Contact (early access)
        Parameters:
        xAccountId - The account identifier
        id -
        crmCreateContactRequestDto -
        Returns:
        CompletableFuture<CrmUpdateContactResponse> - The async response
      • updateContact

        public java.util.concurrent.CompletableFuture<CrmUpdateContactResponse> updateContact​(java.lang.String xAccountId,
                                                                                              java.lang.String id,
                                                                                              CrmCreateContactRequestDto crmCreateContactRequestDto,
                                                                                              java.util.Optional<Options> options)
        Update Contact (early access)
        Parameters:
        xAccountId - The account identifier
        id -
        crmCreateContactRequestDto -
        options - additional options
        Returns:
        CompletableFuture<CrmUpdateContactResponse> - The async response
      • listAccounts

        public java.util.concurrent.CompletableFuture<CrmListAccountsResponse> listAccounts​(CrmListAccountsRequest request)
        List Accounts
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<CrmListAccountsResponse> - The async response
      • listAccounts

        public java.util.concurrent.CompletableFuture<CrmListAccountsResponse> listAccounts​(CrmListAccountsRequest request,
                                                                                            java.util.Optional<Options> options)
        List Accounts
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<CrmListAccountsResponse> - The async response
      • getAccount

        public java.util.concurrent.CompletableFuture<CrmGetAccountResponse> getAccount​(CrmGetAccountRequest request)
        Get Account
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<CrmGetAccountResponse> - The async response
      • getAccount

        public java.util.concurrent.CompletableFuture<CrmGetAccountResponse> getAccount​(CrmGetAccountRequest request,
                                                                                        java.util.Optional<Options> options)
        Get Account
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<CrmGetAccountResponse> - The async response
      • listLists

        public java.util.concurrent.CompletableFuture<CrmListListsResponse> listLists​(CrmListListsRequest request)
        Get all Lists
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<CrmListListsResponse> - The async response
      • listLists

        public java.util.concurrent.CompletableFuture<CrmListListsResponse> listLists​(CrmListListsRequest request,
                                                                                      java.util.Optional<Options> options)
        Get all Lists
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<CrmListListsResponse> - The async response
      • getList

        public java.util.concurrent.CompletableFuture<CrmGetListResponse> getList​(CrmGetListRequest request)
        Get List
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<CrmGetListResponse> - The async response
      • getList

        public java.util.concurrent.CompletableFuture<CrmGetListResponse> getList​(CrmGetListRequest request,
                                                                                  java.util.Optional<Options> options)
        Get List
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<CrmGetListResponse> - The async response
      • listContactCustomFieldDefinitions

        public java.util.concurrent.CompletableFuture<CrmListContactCustomFieldDefinitionsResponse> listContactCustomFieldDefinitions​(CrmListContactCustomFieldDefinitionsRequest request)
        List Contact Custom Field Definitions
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<CrmListContactCustomFieldDefinitionsResponse> - The async response
      • listContactCustomFieldDefinitions

        public java.util.concurrent.CompletableFuture<CrmListContactCustomFieldDefinitionsResponse> listContactCustomFieldDefinitions​(CrmListContactCustomFieldDefinitionsRequest request,
                                                                                                                                      java.util.Optional<Options> options)
        List Contact Custom Field Definitions
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<CrmListContactCustomFieldDefinitionsResponse> - The async response
      • getContactCustomFieldDefinition

        public java.util.concurrent.CompletableFuture<CrmGetContactCustomFieldDefinitionResponse> getContactCustomFieldDefinition​(CrmGetContactCustomFieldDefinitionRequest request)
        Get Contact Custom Field Definition
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<CrmGetContactCustomFieldDefinitionResponse> - The async response
      • getContactCustomFieldDefinition

        public java.util.concurrent.CompletableFuture<CrmGetContactCustomFieldDefinitionResponse> getContactCustomFieldDefinition​(CrmGetContactCustomFieldDefinitionRequest request,
                                                                                                                                  java.util.Optional<Options> options)
        Get Contact Custom Field Definition
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<CrmGetContactCustomFieldDefinitionResponse> - The async response