Class AccountingReports
java.lang.Object
net.amcintosh.freshbooks.resources.api.Resource
net.amcintosh.freshbooks.resources.api.AccountingResource
net.amcintosh.freshbooks.resources.AccountingReports
FreshBooks taxes resource with calls to get, list, create, update, delete
-
Field Summary
Fields inherited from class net.amcintosh.freshbooks.resources.api.Resource
freshBooksClient
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getPath()
protected ResourceType
protected String
getUrl
(String accountId, String reportName, FilterQueryBuilder builder) profitAndLoss
(String accountId) The profit/Loss Report shows all the information involving both your Profits and LossesprofitAndLoss
(String accountId, FilterQueryBuilder builder) The profit/Loss Report shows all the information involving both your Profits and LossesMethods inherited from class net.amcintosh.freshbooks.resources.api.AccountingResource
getUrl, getUrl, getUrl, getUrl, handleListRequest, handleRequest, handleRequest
Methods inherited from class net.amcintosh.freshbooks.resources.api.Resource
buildQueryString
-
Constructor Details
-
AccountingReports
-
-
Method Details
-
getResourceType
- Overrides:
getResourceType
in classAccountingResource
-
getPath
- Specified by:
getPath
in classAccountingResource
-
getUrl
-
profitAndLoss
The profit/Loss Report shows all the information involving both your Profits and Losses- Parameters:
accountId
- Id of the account- Returns:
- ProfitAndLoss Report data
- Throws:
FreshBooksException
- If the call is not successful
-
profitAndLoss
public ProfitAndLoss profitAndLoss(String accountId, FilterQueryBuilder builder) throws FreshBooksException The profit/Loss Report shows all the information involving both your Profits and Losses- Parameters:
accountId
- Id of the accountbuilder
- FilterQueryBuilder to set report parameters- Returns:
- ProfitAndLoss Report data
- Throws:
FreshBooksException
- If the call is not successful
-