Class AsyncAccounts
- java.lang.Object
-
- com.stackone.stackone_client_java.AsyncAccounts
-
public class AsyncAccounts extends java.lang.ObjectChart of accounts.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackoneDeleteAccountRequestBuilderdeleteAccount()Delete Accountjava.util.concurrent.CompletableFuture<StackoneDeleteAccountResponse>deleteAccount(java.lang.String id)Delete Accountjava.util.concurrent.CompletableFuture<StackoneDeleteAccountResponse>deleteAccount(java.lang.String id, java.util.Optional<Options> options)Delete AccountStackoneGetAccountRequestBuildergetAccount()Get Accountjava.util.concurrent.CompletableFuture<StackoneGetAccountResponse>getAccount(java.lang.String id)Get Accountjava.util.concurrent.CompletableFuture<StackoneGetAccountResponse>getAccount(java.lang.String id, java.util.Optional<Options> options)Get AccountStackoneGetAccountMetaInfoRequestBuildergetAccountMetaInfo()Get Account Meta Informationjava.util.concurrent.CompletableFuture<StackoneGetAccountMetaInfoResponse>getAccountMetaInfo(java.lang.String id)Get Account Meta Informationjava.util.concurrent.CompletableFuture<StackoneGetAccountMetaInfoResponse>getAccountMetaInfo(java.lang.String id, java.util.Optional<Options> options)Get Account Meta InformationStackoneListLinkedAccountsRequestBuilderlistLinkedAccounts()List Accountsjava.util.concurrent.CompletableFuture<StackoneListLinkedAccountsResponse>listLinkedAccounts(StackoneListLinkedAccountsRequest request)List Accountsjava.util.concurrent.CompletableFuture<StackoneListLinkedAccountsResponse>listLinkedAccounts(StackoneListLinkedAccountsRequest request, java.util.Optional<Options> options)List AccountsAccountssync()Switches to the sync SDK.StackoneUpdateAccountRequestBuilderupdateAccount()Update Accountjava.util.concurrent.CompletableFuture<StackoneUpdateAccountResponse>updateAccount(java.lang.String id, PatchAccountExternalDto patchAccountExternalDto)Update Accountjava.util.concurrent.CompletableFuture<StackoneUpdateAccountResponse>updateAccount(java.lang.String id, PatchAccountExternalDto patchAccountExternalDto, java.util.Optional<Options> options)Update Account
-
-
-
Method Detail
-
sync
public Accounts sync()
Switches to the sync SDK.- Returns:
- The sync SDK
-
listLinkedAccounts
public StackoneListLinkedAccountsRequestBuilder listLinkedAccounts()
List Accounts- Returns:
- The async call builder
-
listLinkedAccounts
public java.util.concurrent.CompletableFuture<StackoneListLinkedAccountsResponse> listLinkedAccounts(StackoneListLinkedAccountsRequest request)
List Accounts- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- CompletableFuture<StackoneListLinkedAccountsResponse> - The async response
-
listLinkedAccounts
public java.util.concurrent.CompletableFuture<StackoneListLinkedAccountsResponse> listLinkedAccounts(StackoneListLinkedAccountsRequest 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<StackoneListLinkedAccountsResponse> - The async response
-
getAccount
public StackoneGetAccountRequestBuilder getAccount()
Get Account- Returns:
- The async call builder
-
getAccount
public java.util.concurrent.CompletableFuture<StackoneGetAccountResponse> getAccount(java.lang.String id)
Get Account- Parameters:
id-- Returns:
- CompletableFuture<StackoneGetAccountResponse> - The async response
-
getAccount
public java.util.concurrent.CompletableFuture<StackoneGetAccountResponse> getAccount(java.lang.String id, java.util.Optional<Options> options)
Get Account- Parameters:
id-options- additional options- Returns:
- CompletableFuture<StackoneGetAccountResponse> - The async response
-
deleteAccount
public StackoneDeleteAccountRequestBuilder deleteAccount()
Delete Account- Returns:
- The async call builder
-
deleteAccount
public java.util.concurrent.CompletableFuture<StackoneDeleteAccountResponse> deleteAccount(java.lang.String id)
Delete Account- Parameters:
id-- Returns:
- CompletableFuture<StackoneDeleteAccountResponse> - The async response
-
deleteAccount
public java.util.concurrent.CompletableFuture<StackoneDeleteAccountResponse> deleteAccount(java.lang.String id, java.util.Optional<Options> options)
Delete Account- Parameters:
id-options- additional options- Returns:
- CompletableFuture<StackoneDeleteAccountResponse> - The async response
-
updateAccount
public StackoneUpdateAccountRequestBuilder updateAccount()
Update Account- Returns:
- The async call builder
-
updateAccount
public java.util.concurrent.CompletableFuture<StackoneUpdateAccountResponse> updateAccount(java.lang.String id, PatchAccountExternalDto patchAccountExternalDto)
Update Account- Parameters:
id-patchAccountExternalDto-- Returns:
- CompletableFuture<StackoneUpdateAccountResponse> - The async response
-
updateAccount
public java.util.concurrent.CompletableFuture<StackoneUpdateAccountResponse> updateAccount(java.lang.String id, PatchAccountExternalDto patchAccountExternalDto, java.util.Optional<Options> options)
Update Account- Parameters:
id-patchAccountExternalDto-options- additional options- Returns:
- CompletableFuture<StackoneUpdateAccountResponse> - The async response
-
getAccountMetaInfo
public StackoneGetAccountMetaInfoRequestBuilder getAccountMetaInfo()
Get Account Meta Information- Returns:
- The async call builder
-
getAccountMetaInfo
public java.util.concurrent.CompletableFuture<StackoneGetAccountMetaInfoResponse> getAccountMetaInfo(java.lang.String id)
Get Account Meta Information- Parameters:
id-- Returns:
- CompletableFuture<StackoneGetAccountMetaInfoResponse> - The async response
-
getAccountMetaInfo
public java.util.concurrent.CompletableFuture<StackoneGetAccountMetaInfoResponse> getAccountMetaInfo(java.lang.String id, java.util.Optional<Options> options)
Get Account Meta Information- Parameters:
id-options- additional options- Returns:
- CompletableFuture<StackoneGetAccountMetaInfoResponse> - The async response
-
-