Class Accounting
- java.lang.Object
-
- com.stackone.stackone_client_java.Accounting
-
public class Accounting extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
async
public AsyncAccounting async()
Switches to the async SDK.- Returns:
- The async SDK
-
listCompanies
public AccountingListCompaniesRequestBuilder listCompanies()
List Companies- Returns:
- The call builder
-
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 AccountingGetCompanyRequestBuilder getCompany()
Get Company- Returns:
- The call builder
-
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 AccountingListCompanyAccountsRequestBuilder listCompanyAccounts()
List Accounts- Returns:
- The call builder
-
listCompanyAccounts
public AccountingListCompanyAccountsResponse listCompanyAccounts(AccountingListCompanyAccountsRequest request)
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.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 AccountingGetCompanyAccountRequestBuilder getCompanyAccount()
Get Account- Returns:
- The call builder
-
getCompanyAccount
public AccountingGetCompanyAccountResponse getCompanyAccount(AccountingGetCompanyAccountRequest request)
Get Account- 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
-
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 AccountingListCompanyTaxRatesRequestBuilder listCompanyTaxRates()
List Tax Rates- Returns:
- The call builder
-
listCompanyTaxRates
public AccountingListCompanyTaxRatesResponse listCompanyTaxRates(AccountingListCompanyTaxRatesRequest request)
List Tax Rates- 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
-
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 AccountingGetCompanyTaxRateRequestBuilder getCompanyTaxRate()
Get Tax Rate- Returns:
- The call builder
-
getCompanyTaxRate
public AccountingGetCompanyTaxRateResponse getCompanyTaxRate(AccountingGetCompanyTaxRateRequest request)
Get Tax Rate- 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
-
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 AccountingBatchCreateCompanyJournalsRequestBuilder batchCreateCompanyJournals()
Batch Create Journals- Returns:
- The call builder
-
batchCreateCompanyJournals
public AccountingBatchCreateCompanyJournalsResponse batchCreateCompanyJournals(java.lang.String xAccountId, java.lang.String id, AccountingJournalBatchCreateRequestDto accountingJournalBatchCreateRequestDto)
Batch Create Journals- Parameters:
xAccountId- The account identifierid-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, AccountingJournalBatchCreateRequestDto accountingJournalBatchCreateRequestDto, java.util.Optional<Options> options)
Batch Create Journals- Parameters:
xAccountId- The account identifierid-accountingJournalBatchCreateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
listCompanyJournals
public AccountingListCompanyJournalsRequestBuilder listCompanyJournals()
List Journals- Returns:
- The call builder
-
listCompanyJournals
public AccountingListCompanyJournalsResponse listCompanyJournals(AccountingListCompanyJournalsRequest request)
List Journals- 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
-
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 AccountingCreateCompanyJournalRequestBuilder createCompanyJournal()
Create Journal- Returns:
- The call builder
-
createCompanyJournal
public AccountingCreateCompanyJournalResponse createCompanyJournal(java.lang.String xAccountId, java.lang.String id, AccountingJournalCreateRequestDto accountingJournalCreateRequestDto)
Create Journal- Parameters:
xAccountId- The account identifierid-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, AccountingJournalCreateRequestDto accountingJournalCreateRequestDto, java.util.Optional<Options> options)
Create Journal- Parameters:
xAccountId- The account identifierid-accountingJournalCreateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.RuntimeException- subclass if the API call fails
-
getCompanyJournal
public AccountingGetCompanyJournalRequestBuilder getCompanyJournal()
Get Journal- Returns:
- The call builder
-
getCompanyJournal
public AccountingGetCompanyJournalResponse getCompanyJournal(AccountingGetCompanyJournalRequest request)
Get Journal- 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
-
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
-
-