Class Accounting


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

      • async

        public AsyncAccounting async()
        Switches to the async SDK.
        Returns:
        The async SDK
      • listCompanies

        public AccountingListCompaniesResponse listCompanies​(AccountingListCompaniesRequest request)
        List Companies
        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
      • listCompanies

        public 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:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getCompany

        public AccountingGetCompanyResponse getCompany​(AccountingGetCompanyRequest request)
        Get Company
        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
      • getCompany

        public 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:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • listCompanyAccounts

        public 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:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getCompanyAccount

        public 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:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • listCompanyTaxRates

        public 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:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getCompanyTaxRate

        public 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:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • batchCreateCompanyJournals

        public AccountingBatchCreateCompanyJournalsResponse batchCreateCompanyJournals​(java.lang.String xAccountId,
                                                                                       java.lang.String id,
                                                                                       AccountingJournalBatchCreateRequestDto accountingJournalBatchCreateRequestDto)
        Batch Create Journals
        Parameters:
        xAccountId - The account identifier
        id -
        accountingJournalBatchCreateRequestDto -
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • batchCreateCompanyJournals

        public AccountingBatchCreateCompanyJournalsResponse batchCreateCompanyJournals​(java.lang.String xAccountId,
                                                                                       java.lang.String id,
                                                                                       java.util.Optional<java.lang.String> prefer,
                                                                                       AccountingJournalBatchCreateRequestDto accountingJournalBatchCreateRequestDto,
                                                                                       java.util.Optional<Options> options)
        Batch Create Journals
        Parameters:
        xAccountId - The account identifier
        id -
        prefer - Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)
        accountingJournalBatchCreateRequestDto -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • listCompanyJournals

        public 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:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • createCompanyJournal

        public AccountingCreateCompanyJournalResponse createCompanyJournal​(java.lang.String xAccountId,
                                                                           java.lang.String id,
                                                                           AccountingJournalCreateRequestDto accountingJournalCreateRequestDto)
        Create Journal
        Parameters:
        xAccountId - The account identifier
        id -
        accountingJournalCreateRequestDto -
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • createCompanyJournal

        public AccountingCreateCompanyJournalResponse createCompanyJournal​(java.lang.String xAccountId,
                                                                           java.lang.String id,
                                                                           java.util.Optional<java.lang.String> prefer,
                                                                           AccountingJournalCreateRequestDto accountingJournalCreateRequestDto,
                                                                           java.util.Optional<Options> options)
        Create Journal
        Parameters:
        xAccountId - The account identifier
        id -
        prefer - Set to "heartbeat" to enable keep-alive newline heartbeats during long-running requests. Response includes Preference-Applied: heartbeat header when honored. (RFC 7240)
        accountingJournalCreateRequestDto -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getCompanyJournal

        public 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:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails