Class AsyncAccounts


  • public class AsyncAccounts
    extends java.lang.Object
    Chart of accounts.
    • Method Detail

      • sync

        public Accounts sync()
        Switches to the sync SDK.
        Returns:
        The sync SDK
      • 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 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 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 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 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