Class Accounts


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

      • listLinkedAccounts

        public StackoneListLinkedAccountsResponse listLinkedAccounts​(StackoneListLinkedAccountsRequest request)
                                                              throws java.lang.Exception
        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.Exception - if the API call fails
      • listLinkedAccounts

        public StackoneListLinkedAccountsResponse listLinkedAccounts​(StackoneListLinkedAccountsRequest request,
                                                                     java.util.Optional<Options> options)
                                                              throws java.lang.Exception
        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.Exception - if the API call fails
      • 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
        Parameters:
        id -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • 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
        Parameters:
        id -
        options - additional options
        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)
                                                    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
        Parameters:
        id -
        patchAccountExternalDto -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getAccountMetaInfo

        public StackoneGetAccountMetaInfoResponse getAccountMetaInfo​(java.lang.String id)
                                                              throws java.lang.Exception
        Get Account Meta Information
        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 Account Meta Information
        Parameters:
        id -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails