Class AsyncAccounting


  • public class AsyncAccounting
    extends java.lang.Object
    • Method Detail

      • sync

        public Accounting sync()
        Switches to the sync SDK.
        Returns:
        The sync SDK
      • listCompanies

        public java.util.concurrent.CompletableFuture<AccountingListCompaniesResponse> listCompanies​(AccountingListCompaniesRequest request)
        List Companies
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<AccountingListCompaniesResponse> - The async response
      • listCompanies

        public java.util.concurrent.CompletableFuture<AccountingListCompaniesResponse> listCompanies​(AccountingListCompaniesRequest request,
                                                                                                     java.util.Optional<Options> options)
        List Companies
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<AccountingListCompaniesResponse> - The async response
      • getCompany

        public java.util.concurrent.CompletableFuture<AccountingGetCompanyResponse> getCompany​(AccountingGetCompanyRequest request)
        Get Company
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<AccountingGetCompanyResponse> - The async response
      • getCompany

        public java.util.concurrent.CompletableFuture<AccountingGetCompanyResponse> getCompany​(AccountingGetCompanyRequest request,
                                                                                               java.util.Optional<Options> options)
        Get Company
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<AccountingGetCompanyResponse> - The async response
      • listCompanyAccounts

        public java.util.concurrent.CompletableFuture<AccountingListCompanyAccountsResponse> listCompanyAccounts​(AccountingListCompanyAccountsRequest request)
        List Accounts
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<AccountingListCompanyAccountsResponse> - The async response
      • listCompanyAccounts

        public java.util.concurrent.CompletableFuture<AccountingListCompanyAccountsResponse> listCompanyAccounts​(AccountingListCompanyAccountsRequest 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<AccountingListCompanyAccountsResponse> - The async response
      • getCompanyAccount

        public java.util.concurrent.CompletableFuture<AccountingGetCompanyAccountResponse> getCompanyAccount​(AccountingGetCompanyAccountRequest request)
        Get Account
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<AccountingGetCompanyAccountResponse> - The async response
      • getCompanyAccount

        public java.util.concurrent.CompletableFuture<AccountingGetCompanyAccountResponse> getCompanyAccount​(AccountingGetCompanyAccountRequest request,
                                                                                                             java.util.Optional<Options> options)
        Get Account
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<AccountingGetCompanyAccountResponse> - The async response
      • listCompanyTaxRates

        public java.util.concurrent.CompletableFuture<AccountingListCompanyTaxRatesResponse> listCompanyTaxRates​(AccountingListCompanyTaxRatesRequest request)
        List Tax Rates
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<AccountingListCompanyTaxRatesResponse> - The async response
      • listCompanyTaxRates

        public java.util.concurrent.CompletableFuture<AccountingListCompanyTaxRatesResponse> listCompanyTaxRates​(AccountingListCompanyTaxRatesRequest request,
                                                                                                                 java.util.Optional<Options> options)
        List Tax Rates
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<AccountingListCompanyTaxRatesResponse> - The async response
      • getCompanyTaxRate

        public java.util.concurrent.CompletableFuture<AccountingGetCompanyTaxRateResponse> getCompanyTaxRate​(AccountingGetCompanyTaxRateRequest request)
        Get Tax Rate
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<AccountingGetCompanyTaxRateResponse> - The async response
      • getCompanyTaxRate

        public java.util.concurrent.CompletableFuture<AccountingGetCompanyTaxRateResponse> getCompanyTaxRate​(AccountingGetCompanyTaxRateRequest request,
                                                                                                             java.util.Optional<Options> options)
        Get Tax Rate
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<AccountingGetCompanyTaxRateResponse> - The async response
      • batchCreateCompanyJournals

        public java.util.concurrent.CompletableFuture<AccountingBatchCreateCompanyJournalsResponse> batchCreateCompanyJournals​(java.lang.String xAccountId,
                                                                                                                               java.lang.String id,
                                                                                                                               AccountingJournalBatchCreateRequestDto accountingJournalBatchCreateRequestDto)
        Batch Create Journals
        Parameters:
        xAccountId - The account identifier
        id -
        accountingJournalBatchCreateRequestDto -
        Returns:
        CompletableFuture<AccountingBatchCreateCompanyJournalsResponse> - The async response
      • batchCreateCompanyJournals

        public java.util.concurrent.CompletableFuture<AccountingBatchCreateCompanyJournalsResponse> batchCreateCompanyJournals​(java.lang.String xAccountId,
                                                                                                                               java.lang.String id,
                                                                                                                               AccountingJournalBatchCreateRequestDto accountingJournalBatchCreateRequestDto,
                                                                                                                               java.util.Optional<Options> options)
        Batch Create Journals
        Parameters:
        xAccountId - The account identifier
        id -
        accountingJournalBatchCreateRequestDto -
        options - additional options
        Returns:
        CompletableFuture<AccountingBatchCreateCompanyJournalsResponse> - The async response
      • listCompanyJournals

        public java.util.concurrent.CompletableFuture<AccountingListCompanyJournalsResponse> listCompanyJournals​(AccountingListCompanyJournalsRequest request)
        List Journals
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<AccountingListCompanyJournalsResponse> - The async response
      • listCompanyJournals

        public java.util.concurrent.CompletableFuture<AccountingListCompanyJournalsResponse> listCompanyJournals​(AccountingListCompanyJournalsRequest request,
                                                                                                                 java.util.Optional<Options> options)
        List Journals
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<AccountingListCompanyJournalsResponse> - The async response
      • createCompanyJournal

        public java.util.concurrent.CompletableFuture<AccountingCreateCompanyJournalResponse> createCompanyJournal​(java.lang.String xAccountId,
                                                                                                                   java.lang.String id,
                                                                                                                   AccountingJournalCreateRequestDto accountingJournalCreateRequestDto)
        Create Journal
        Parameters:
        xAccountId - The account identifier
        id -
        accountingJournalCreateRequestDto -
        Returns:
        CompletableFuture<AccountingCreateCompanyJournalResponse> - The async response
      • createCompanyJournal

        public java.util.concurrent.CompletableFuture<AccountingCreateCompanyJournalResponse> createCompanyJournal​(java.lang.String xAccountId,
                                                                                                                   java.lang.String id,
                                                                                                                   AccountingJournalCreateRequestDto accountingJournalCreateRequestDto,
                                                                                                                   java.util.Optional<Options> options)
        Create Journal
        Parameters:
        xAccountId - The account identifier
        id -
        accountingJournalCreateRequestDto -
        options - additional options
        Returns:
        CompletableFuture<AccountingCreateCompanyJournalResponse> - The async response
      • getCompanyJournal

        public java.util.concurrent.CompletableFuture<AccountingGetCompanyJournalResponse> getCompanyJournal​(AccountingGetCompanyJournalRequest request)
        Get Journal
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        CompletableFuture<AccountingGetCompanyJournalResponse> - The async response
      • getCompanyJournal

        public java.util.concurrent.CompletableFuture<AccountingGetCompanyJournalResponse> getCompanyJournal​(AccountingGetCompanyJournalRequest request,
                                                                                                             java.util.Optional<Options> options)
        Get Journal
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        CompletableFuture<AccountingGetCompanyJournalResponse> - The async response