Class AsyncAccounting
- java.lang.Object
-
- com.stackone.stackone_client_java.AsyncAccounting
-
public class AsyncAccounting extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
sync
public Accounting sync()
Switches to the sync SDK.- Returns:
- The sync SDK
-
listCompanies
public AccountingListCompaniesRequestBuilder listCompanies()
List Companies- Returns:
- The async call builder
-
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 AccountingGetCompanyRequestBuilder getCompany()
Get Company- Returns:
- The async call builder
-
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 AccountingListCompanyAccountsRequestBuilder listCompanyAccounts()
List Accounts- Returns:
- The async call builder
-
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 AccountingGetCompanyAccountRequestBuilder getCompanyAccount()
Get Account- Returns:
- The async call builder
-
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 AccountingListCompanyTaxRatesRequestBuilder listCompanyTaxRates()
List Tax Rates- Returns:
- The async call builder
-
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 AccountingGetCompanyTaxRateRequestBuilder getCompanyTaxRate()
Get Tax Rate- Returns:
- The async call builder
-
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 AccountingBatchCreateCompanyJournalsRequestBuilder batchCreateCompanyJournals()
Batch Create Journals- Returns:
- The async call builder
-
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 identifierid-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 identifierid-accountingJournalBatchCreateRequestDto-options- additional options- Returns:
- CompletableFuture<AccountingBatchCreateCompanyJournalsResponse> - The async response
-
listCompanyJournals
public AccountingListCompanyJournalsRequestBuilder listCompanyJournals()
List Journals- Returns:
- The async call builder
-
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 AccountingCreateCompanyJournalRequestBuilder createCompanyJournal()
Create Journal- Returns:
- The async call builder
-
createCompanyJournal
public java.util.concurrent.CompletableFuture<AccountingCreateCompanyJournalResponse> createCompanyJournal(java.lang.String xAccountId, java.lang.String id, AccountingJournalCreateRequestDto accountingJournalCreateRequestDto)
Create Journal- Parameters:
xAccountId- The account identifierid-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 identifierid-accountingJournalCreateRequestDto-options- additional options- Returns:
- CompletableFuture<AccountingCreateCompanyJournalResponse> - The async response
-
getCompanyJournal
public AccountingGetCompanyJournalRequestBuilder getCompanyJournal()
Get Journal- Returns:
- The async call builder
-
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
-
-