Class RefundService
java.lang.Object
com.easypost.service.RefundService
-
Method Summary
Modifier and TypeMethodDescriptionList all Refunds objects.Create a Refund object from a map of parameters.getNextPage
(RefundCollection collection) Get the next page of an RefundCollection.getNextPage
(RefundCollection collection, Integer pageSize) Get the next page of an RefundCollection.Retrieve a Refund object from the API.
-
Method Details
-
create
Create a Refund object from a map of parameters.- Parameters:
params
- Map of parameters- Returns:
- Refund object
- Throws:
EasyPostException
- when the request fails.
-
retrieve
Retrieve a Refund object from the API.- Parameters:
id
- ID of refund to retrieve- Returns:
- Refund object
- Throws:
EasyPostException
- when the request fails.
-
all
List all Refunds objects.- Parameters:
params
- Map of parameters- Returns:
- RefundCollection object
- Throws:
EasyPostException
- when the request fails.
-
getNextPage
Get the next page of an RefundCollection.- Parameters:
collection
- RefundCollection to get next page of.- Returns:
- RefundCollection object.
- Throws:
EndOfPaginationError
- when there are no more pages to retrieve.
-
getNextPage
public RefundCollection getNextPage(RefundCollection collection, Integer pageSize) throws EndOfPaginationError Get the next page of an RefundCollection.- Parameters:
collection
- RefundCollection to get next page of.pageSize
- The number of results to return on the next page.- Returns:
- RefundCollection object.
- Throws:
EndOfPaginationError
- when there are no more pages to retrieve.
-