Class ScanformService
java.lang.Object
com.easypost.service.ScanformService
-
Method Summary
Modifier and TypeMethodDescriptionGet a list of ScanForms from the API.Create a ScanForm from a map of parameters.getNextPage
(ScanFormCollection collection) Get the next page of an ScanFormCollection.getNextPage
(ScanFormCollection collection, Integer pageSize) Get the next page of an ScanFormCollection.Retrieve a ScanForm from the API.
-
Method Details
-
create
Create a ScanForm from a map of parameters.- Parameters:
params
- the map of parameters.- Returns:
- ScanForm object.
- Throws:
EasyPostException
- when the request fails. when the request fails.
-
retrieve
Retrieve a ScanForm from the API.- Parameters:
id
- the id of the ScanForm to retrieve.- Returns:
- ScanForm object.
- Throws:
EasyPostException
- when the request fails. when the request fails.
-
all
Get a list of ScanForms from the API.- Parameters:
params
- the parameters to send to the API.- Returns:
- ScanFormCollection object.
- Throws:
EasyPostException
- when the request fails. when the request fails.
-
getNextPage
Get the next page of an ScanFormCollection.- Parameters:
collection
- ScanFormCollection to get next page of.- Returns:
- ScanFormCollection object.
- Throws:
EndOfPaginationError
- when there are no more pages to retrieve.
-
getNextPage
public ScanFormCollection getNextPage(ScanFormCollection collection, Integer pageSize) throws EndOfPaginationError Get the next page of an ScanFormCollection.- Parameters:
collection
- ScanFormCollection to get next page of.pageSize
- The number of results to return on the next page.- Returns:
- ScanFormCollection object.
- Throws:
EndOfPaginationError
- when there are no more pages to retrieve.
-