Class AccountingResource
java.lang.Object
net.amcintosh.freshbooks.resources.api.Resource
net.amcintosh.freshbooks.resources.api.AccountingResource
- Direct Known Subclasses:
AccountingReports
,Clients
,Expenses
,Invoices
,Items
,OtherIncomes
,Payments
,Tasks
,Taxes
Handles resources under the
/accounting
endpoints.-
Field Summary
Fields inherited from class net.amcintosh.freshbooks.resources.api.Resource
freshBooksClient
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
getPath()
protected ResourceType
protected String
protected String
protected String
getUrl
(String accountId, long resourceId, IncludesQueryBuilder builder) protected String
getUrl
(String accountId, List<QueryBuilder> builders) protected AccountingListResponse
handleListRequest
(String url) protected AccountingResponse
handleRequest
(String method, String url) protected AccountingResponse
Methods inherited from class net.amcintosh.freshbooks.resources.api.Resource
buildQueryString
-
Constructor Details
-
AccountingResource
- Parameters:
freshBooksClient
- Initialized instance of FreshBooksClient
-
-
Method Details
-
getResourceType
- Specified by:
getResourceType
in classResource
-
getPath
-
getUrl
-
getUrl
-
getUrl
-
getUrl
-
handleRequest
- Throws:
FreshBooksException
-
handleRequest
protected AccountingResponse handleRequest(String method, String url, Map<String, Object> content) throws FreshBooksException- Throws:
FreshBooksException
-
handleListRequest
- Throws:
FreshBooksException
-