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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringgetPath()protected ResourceTypeprotected Stringprotected Stringprotected StringgetUrl(String accountId, long resourceId, IncludesQueryBuilder builder) protected StringgetUrl(String accountId, List<QueryBuilder> builders) protected AccountingListResponsehandleListRequest(String url) protected AccountingResponsehandleRequest(String method, String url) protected AccountingResponseMethods inherited from class net.amcintosh.freshbooks.resources.api.Resource
buildQueryString
-
Constructor Details
-
AccountingResource
- Parameters:
freshBooksClient- Initialized instance of FreshBooksClient
-
-
Method Details
-
getResourceType
- Specified by:
getResourceTypein 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
-