Package com.easypost.service
Class TrackerService
java.lang.Object
com.easypost.service.TrackerService
- 
Method Summary
Modifier and TypeMethodDescriptionGet a list of all Tracker objects.Create a new Tracker object using a map of parameters.getNextPage(TrackerCollection collection) Get the next page of an TrackerCollection.getNextPage(TrackerCollection collection, Integer pageSize) Get the next page of an TrackerCollection.Retrieve a Tracker object from the API. 
- 
Method Details
- 
create
Create a new Tracker object using a map of parameters.- Parameters:
 params- Map of parameters used to create the Tracker.- Returns:
 - Tracker object.
 - Throws:
 EasyPostException- when the request fails.
 - 
retrieve
Retrieve a Tracker object from the API.- Parameters:
 id- ID of the Tracker to retrieve.- Returns:
 - Tracker object.
 - Throws:
 EasyPostException- when the request fails.
 - 
all
Get a list of all Tracker objects.- Parameters:
 params- Map of parameters used to filter the list of Trackers.- Returns:
 - TrackerCollection object.
 - Throws:
 EasyPostException- when the request fails.
 - 
getNextPage
Get the next page of an TrackerCollection.- Parameters:
 collection- TrackerCollection to get next page of.- Returns:
 - TrackerCollection object.
 - Throws:
 EndOfPaginationError- when there are no more pages to retrieve.
 - 
getNextPage
public TrackerCollection getNextPage(TrackerCollection collection, Integer pageSize) throws EndOfPaginationError Get the next page of an TrackerCollection.- Parameters:
 collection- TrackerCollection to get next page of.pageSize- The number of results to return on the next page.- Returns:
 - TrackerCollection object.
 - Throws:
 EndOfPaginationError- when there are no more pages to retrieve.
 
 -