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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetPath()protected ResourceTypeprotected StringgetUrl(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, handleRequestMethods inherited from class net.amcintosh.freshbooks.resources.api.Resource
buildQueryString
-
Constructor Details
-
AccountingReports
-
-
Method Details
-
getResourceType
- Overrides:
getResourceTypein classAccountingResource
-
getPath
- Specified by:
getPathin 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
-