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) throws java.lang.Exception
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.Exception- if the API call fails
-
listCompanies
public AccountingListCompaniesResponse listCompanies(AccountingListCompaniesRequest request, java.util.Optional<Options> options) throws java.lang.Exception
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.Exception- if the API call fails
-
getCompany
public AccountingGetCompanyRequestBuilder getCompany()
Get Company- Returns:
- The call builder
-
getCompany
public AccountingGetCompanyResponse getCompany(AccountingGetCompanyRequest request) throws java.lang.Exception
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.Exception- if the API call fails
-
getCompany
public AccountingGetCompanyResponse getCompany(AccountingGetCompanyRequest request, java.util.Optional<Options> options) throws java.lang.Exception
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.Exception- if the API call fails
-
listCompanyAccounts
public AccountingListCompanyAccountsRequestBuilder listCompanyAccounts()
List Accounts- Returns:
- The call builder
-
listCompanyAccounts
public AccountingListCompanyAccountsResponse listCompanyAccounts(AccountingListCompanyAccountsRequest 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
-
listCompanyAccounts
public AccountingListCompanyAccountsResponse listCompanyAccounts(AccountingListCompanyAccountsRequest 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
-
getCompanyAccount
public AccountingGetCompanyAccountRequestBuilder getCompanyAccount()
Get Account- Returns:
- The call builder
-
getCompanyAccount
public AccountingGetCompanyAccountResponse getCompanyAccount(AccountingGetCompanyAccountRequest request) throws java.lang.Exception
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.Exception- if the API call fails
-
getCompanyAccount
public AccountingGetCompanyAccountResponse getCompanyAccount(AccountingGetCompanyAccountRequest request, java.util.Optional<Options> options) throws java.lang.Exception
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.Exception- if the API call fails
-
listCompanyTaxRates
public AccountingListCompanyTaxRatesRequestBuilder listCompanyTaxRates()
List Tax Rates- Returns:
- The call builder
-
listCompanyTaxRates
public AccountingListCompanyTaxRatesResponse listCompanyTaxRates(AccountingListCompanyTaxRatesRequest request) throws java.lang.Exception
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.Exception- if the API call fails
-
listCompanyTaxRates
public AccountingListCompanyTaxRatesResponse listCompanyTaxRates(AccountingListCompanyTaxRatesRequest request, java.util.Optional<Options> options) throws java.lang.Exception
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.Exception- if the API call fails
-
getCompanyTaxRate
public AccountingGetCompanyTaxRateRequestBuilder getCompanyTaxRate()
Get Tax Rate- Returns:
- The call builder
-
getCompanyTaxRate
public AccountingGetCompanyTaxRateResponse getCompanyTaxRate(AccountingGetCompanyTaxRateRequest request) throws java.lang.Exception
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.Exception- if the API call fails
-
getCompanyTaxRate
public AccountingGetCompanyTaxRateResponse getCompanyTaxRate(AccountingGetCompanyTaxRateRequest request, java.util.Optional<Options> options) throws java.lang.Exception
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.Exception- 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) throws java.lang.Exception
Batch Create Journals- Parameters:
xAccountId- The account identifierid-accountingJournalBatchCreateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
batchCreateCompanyJournals
public AccountingBatchCreateCompanyJournalsResponse batchCreateCompanyJournals(java.lang.String xAccountId, java.lang.String id, AccountingJournalBatchCreateRequestDto accountingJournalBatchCreateRequestDto, java.util.Optional<Options> options) throws java.lang.Exception
Batch Create Journals- Parameters:
xAccountId- The account identifierid-accountingJournalBatchCreateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
listCompanyJournals
public AccountingListCompanyJournalsRequestBuilder listCompanyJournals()
List Journals- Returns:
- The call builder
-
listCompanyJournals
public AccountingListCompanyJournalsResponse listCompanyJournals(AccountingListCompanyJournalsRequest request) throws java.lang.Exception
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.Exception- if the API call fails
-
listCompanyJournals
public AccountingListCompanyJournalsResponse listCompanyJournals(AccountingListCompanyJournalsRequest request, java.util.Optional<Options> options) throws java.lang.Exception
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.Exception- 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) throws java.lang.Exception
Create Journal- Parameters:
xAccountId- The account identifierid-accountingJournalCreateRequestDto-- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
createCompanyJournal
public AccountingCreateCompanyJournalResponse createCompanyJournal(java.lang.String xAccountId, java.lang.String id, AccountingJournalCreateRequestDto accountingJournalCreateRequestDto, java.util.Optional<Options> options) throws java.lang.Exception
Create Journal- Parameters:
xAccountId- The account identifierid-accountingJournalCreateRequestDto-options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
getCompanyJournal
public AccountingGetCompanyJournalRequestBuilder getCompanyJournal()
Get Journal- Returns:
- The call builder
-
getCompanyJournal
public AccountingGetCompanyJournalResponse getCompanyJournal(AccountingGetCompanyJournalRequest request) throws java.lang.Exception
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.Exception- if the API call fails
-
getCompanyJournal
public AccountingGetCompanyJournalResponse getCompanyJournal(AccountingGetCompanyJournalRequest request, java.util.Optional<Options> options) throws java.lang.Exception
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.Exception- if the API call fails
-
-