Class AsyncCrm
- java.lang.Object
-
- com.stackone.stackone_client_java.AsyncCrm
-
public class AsyncCrm extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrmCreateContactRequestBuildercreateContact()Create Contactjava.util.concurrent.CompletableFuture<CrmCreateContactResponse>createContact(java.lang.String xAccountId, CrmCreateContactRequestDto crmCreateContactRequestDto)Create Contactjava.util.concurrent.CompletableFuture<CrmCreateContactResponse>createContact(java.lang.String xAccountId, CrmCreateContactRequestDto crmCreateContactRequestDto, java.util.Optional<Options> options)Create ContactCrmGetAccountRequestBuildergetAccount()Get Accountjava.util.concurrent.CompletableFuture<CrmGetAccountResponse>getAccount(CrmGetAccountRequest request)Get Accountjava.util.concurrent.CompletableFuture<CrmGetAccountResponse>getAccount(CrmGetAccountRequest request, java.util.Optional<Options> options)Get AccountCrmGetContactRequestBuildergetContact()Get Contactjava.util.concurrent.CompletableFuture<CrmGetContactResponse>getContact(CrmGetContactRequest request)Get Contactjava.util.concurrent.CompletableFuture<CrmGetContactResponse>getContact(CrmGetContactRequest request, java.util.Optional<Options> options)Get ContactCrmGetContactCustomFieldDefinitionRequestBuildergetContactCustomFieldDefinition()Get Contact Custom Field Definitionjava.util.concurrent.CompletableFuture<CrmGetContactCustomFieldDefinitionResponse>getContactCustomFieldDefinition(CrmGetContactCustomFieldDefinitionRequest request)Get Contact Custom Field Definitionjava.util.concurrent.CompletableFuture<CrmGetContactCustomFieldDefinitionResponse>getContactCustomFieldDefinition(CrmGetContactCustomFieldDefinitionRequest request, java.util.Optional<Options> options)Get Contact Custom Field DefinitionCrmGetListRequestBuildergetList()Get Listjava.util.concurrent.CompletableFuture<CrmGetListResponse>getList(CrmGetListRequest request)Get Listjava.util.concurrent.CompletableFuture<CrmGetListResponse>getList(CrmGetListRequest request, java.util.Optional<Options> options)Get ListCrmListAccountsRequestBuilderlistAccounts()List Accountsjava.util.concurrent.CompletableFuture<CrmListAccountsResponse>listAccounts(CrmListAccountsRequest request)List Accountsjava.util.concurrent.CompletableFuture<CrmListAccountsResponse>listAccounts(CrmListAccountsRequest request, java.util.Optional<Options> options)List AccountsCrmListContactCustomFieldDefinitionsRequestBuilderlistContactCustomFieldDefinitions()List Contact Custom Field Definitionsjava.util.concurrent.CompletableFuture<CrmListContactCustomFieldDefinitionsResponse>listContactCustomFieldDefinitions(CrmListContactCustomFieldDefinitionsRequest request)List Contact Custom Field Definitionsjava.util.concurrent.CompletableFuture<CrmListContactCustomFieldDefinitionsResponse>listContactCustomFieldDefinitions(CrmListContactCustomFieldDefinitionsRequest request, java.util.Optional<Options> options)List Contact Custom Field DefinitionsCrmListContactsRequestBuilderlistContacts()List Contactsjava.util.concurrent.CompletableFuture<CrmListContactsResponse>listContacts(CrmListContactsRequest request)List Contactsjava.util.concurrent.CompletableFuture<CrmListContactsResponse>listContacts(CrmListContactsRequest request, java.util.Optional<Options> options)List ContactsCrmListListsRequestBuilderlistLists()Get all Listsjava.util.concurrent.CompletableFuture<CrmListListsResponse>listLists(CrmListListsRequest request)Get all Listsjava.util.concurrent.CompletableFuture<CrmListListsResponse>listLists(CrmListListsRequest request, java.util.Optional<Options> options)Get all ListsCrmsync()Switches to the sync SDK.CrmUpdateContactRequestBuilderupdateContact()Update Contact (early access)java.util.concurrent.CompletableFuture<CrmUpdateContactResponse>updateContact(java.lang.String xAccountId, java.lang.String id, CrmCreateContactRequestDto crmCreateContactRequestDto)Update Contact (early access)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)
-
-
-
Method Detail
-
sync
public Crm sync()
Switches to the sync SDK.- Returns:
- The sync SDK
-
listContacts
public CrmListContactsRequestBuilder listContacts()
List Contacts- Returns:
- The async call builder
-
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 CrmCreateContactRequestBuilder createContact()
Create Contact- Returns:
- The async call builder
-
createContact
public java.util.concurrent.CompletableFuture<CrmCreateContactResponse> createContact(java.lang.String xAccountId, CrmCreateContactRequestDto crmCreateContactRequestDto)
Create Contact- Parameters:
xAccountId- The account identifiercrmCreateContactRequestDto-- 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 identifiercrmCreateContactRequestDto-options- additional options- Returns:
CompletableFuture<CrmCreateContactResponse>- The async response
-
getContact
public CrmGetContactRequestBuilder getContact()
Get Contact- Returns:
- The async call builder
-
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 CrmUpdateContactRequestBuilder updateContact()
Update Contact (early access)- Returns:
- The async call builder
-
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 identifierid-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 identifierid-crmCreateContactRequestDto-options- additional options- Returns:
CompletableFuture<CrmUpdateContactResponse>- The async response
-
listAccounts
public CrmListAccountsRequestBuilder listAccounts()
List Accounts- Returns:
- The async call builder
-
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 CrmGetAccountRequestBuilder getAccount()
Get Account- Returns:
- The async call builder
-
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 CrmListListsRequestBuilder listLists()
Get all Lists- Returns:
- The async call builder
-
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 CrmGetListRequestBuilder getList()
Get List- Returns:
- The async call builder
-
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 CrmListContactCustomFieldDefinitionsRequestBuilder listContactCustomFieldDefinitions()
List Contact Custom Field Definitions- Returns:
- The async call builder
-
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 CrmGetContactCustomFieldDefinitionRequestBuilder getContactCustomFieldDefinition()
Get Contact Custom Field Definition- Returns:
- The async call builder
-
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
-
-