Class Accounts
- java.lang.Object
-
- com.stackone.stackone_client_java.Accounts
-
public class Accounts extends java.lang.ObjectChart of accounts.
-
-
Method Summary
-
-
-
Method Detail
-
async
public AsyncAccounts async()
Switches to the async SDK.- Returns:
- The async SDK
-
listLinkedAccounts
public StackoneListLinkedAccountsRequestBuilder listLinkedAccounts()
List Accounts- Returns:
- The call builder
-
listLinkedAccounts
public StackoneListLinkedAccountsResponse listLinkedAccounts(StackoneListLinkedAccountsRequest request)
List Accounts- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listLinkedAccounts
public 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:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getAccount
public StackoneGetAccountRequestBuilder getAccount()
Get Account- Returns:
- The call builder
-
getAccount
public StackoneGetAccountResponse getAccount(java.lang.String id)
Get Account- Parameters:
id-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getAccount
public StackoneGetAccountResponse getAccount(java.lang.String id, java.util.Optional<Options> options)
Get Account- Parameters:
id-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
deleteAccount
public StackoneDeleteAccountRequestBuilder deleteAccount()
Delete Account- Returns:
- The call builder
-
deleteAccount
public StackoneDeleteAccountResponse deleteAccount(java.lang.String id)
Delete Account- Parameters:
id-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
deleteAccount
public StackoneDeleteAccountResponse deleteAccount(java.lang.String id, java.util.Optional<Options> options)
Delete Account- Parameters:
id-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateAccount
public StackoneUpdateAccountRequestBuilder updateAccount()
Update Account- Returns:
- The call builder
-
updateAccount
public StackoneUpdateAccountResponse updateAccount(java.lang.String id, PatchAccountExternalDto patchAccountExternalDto)
Update Account- Parameters:
id-patchAccountExternalDto-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
updateAccount
public StackoneUpdateAccountResponse updateAccount(java.lang.String id, PatchAccountExternalDto patchAccountExternalDto, java.util.Optional<Options> options)
Update Account- Parameters:
id-patchAccountExternalDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getAccountMetaInfo
public StackoneGetAccountMetaInfoRequestBuilder getAccountMetaInfo()
Get Account Meta Information- Returns:
- The call builder
-
getAccountMetaInfo
public StackoneGetAccountMetaInfoResponse getAccountMetaInfo(java.lang.String id)
Get Account Meta Information- Parameters:
id-- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getAccountMetaInfo
public StackoneGetAccountMetaInfoResponse getAccountMetaInfo(java.lang.String id, java.util.Optional<Options> options)
Get Account Meta Information- Parameters:
id-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
-