Class Accounts
- java.lang.Object
-
- com.stackone.stackone_client_java.Accounts
-
- All Implemented Interfaces:
SDKMethodInterfaces.MethodCallStackoneDeleteAccount,SDKMethodInterfaces.MethodCallStackoneGetAccount,SDKMethodInterfaces.MethodCallStackoneGetAccountMetaInfo,SDKMethodInterfaces.MethodCallStackoneListLinkedAccounts,SDKMethodInterfaces.MethodCallStackoneUpdateAccount
public class Accounts extends java.lang.Object implements SDKMethodInterfaces.MethodCallStackoneListLinkedAccounts, SDKMethodInterfaces.MethodCallStackoneGetAccount, SDKMethodInterfaces.MethodCallStackoneDeleteAccount, SDKMethodInterfaces.MethodCallStackoneUpdateAccount, SDKMethodInterfaces.MethodCallStackoneGetAccountMetaInfo
-
-
Method Summary
-
-
-
Method Detail
-
listLinkedAccounts
public StackoneListLinkedAccountsRequestBuilder listLinkedAccounts()
List Accounts- Returns:
- The call builder
-
listLinkedAccounts
public StackoneListLinkedAccountsResponse listLinkedAccounts(StackoneListLinkedAccountsRequest request) throws java.lang.Exception
List Accounts- Parameters:
request- The request object containing all of the parameters for the API call.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
listLinkedAccounts
public StackoneListLinkedAccountsResponse listLinkedAccounts(StackoneListLinkedAccountsRequest request, java.util.Optional<Options> options) throws java.lang.Exception
List Accounts- Specified by:
listLinkedAccountsin interfaceSDKMethodInterfaces.MethodCallStackoneListLinkedAccounts- Parameters:
request- The request object containing all of the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
getAccount
public StackoneGetAccountRequestBuilder getAccount()
Get Account- Returns:
- The call builder
-
getAccount
public StackoneGetAccountResponse getAccount(java.lang.String id) throws java.lang.Exception
Get Account- Parameters:
id-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
getAccount
public StackoneGetAccountResponse getAccount(java.lang.String id, java.util.Optional<Options> options) throws java.lang.Exception
Get Account- Specified by:
getAccountin interfaceSDKMethodInterfaces.MethodCallStackoneGetAccount- Parameters:
id-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
deleteAccount
public StackoneDeleteAccountRequestBuilder deleteAccount()
Delete Account- Returns:
- The call builder
-
deleteAccount
public StackoneDeleteAccountResponse deleteAccount(java.lang.String id) throws java.lang.Exception
Delete Account- Parameters:
id-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
deleteAccount
public StackoneDeleteAccountResponse deleteAccount(java.lang.String id, java.util.Optional<Options> options) throws java.lang.Exception
Delete Account- Specified by:
deleteAccountin interfaceSDKMethodInterfaces.MethodCallStackoneDeleteAccount- Parameters:
id-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.Exception- 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) throws java.lang.Exception
Update Account- Parameters:
id-patchAccountExternalDto-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
updateAccount
public StackoneUpdateAccountResponse updateAccount(java.lang.String id, PatchAccountExternalDto patchAccountExternalDto, java.util.Optional<Options> options) throws java.lang.Exception
Update Account- Specified by:
updateAccountin interfaceSDKMethodInterfaces.MethodCallStackoneUpdateAccount- Parameters:
id-patchAccountExternalDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
getAccountMetaInfo
public StackoneGetAccountMetaInfoRequestBuilder getAccountMetaInfo()
Get meta information of the account- Returns:
- The call builder
-
getAccountMetaInfo
public StackoneGetAccountMetaInfoResponse getAccountMetaInfo(java.lang.String id) throws java.lang.Exception
Get meta information of the account- Parameters:
id-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
getAccountMetaInfo
public StackoneGetAccountMetaInfoResponse getAccountMetaInfo(java.lang.String id, java.util.Optional<Options> options) throws java.lang.Exception
Get meta information of the account- Specified by:
getAccountMetaInfoin interfaceSDKMethodInterfaces.MethodCallStackoneGetAccountMetaInfo- Parameters:
id-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
-