Package com.easypost.service
Class WebhookService
java.lang.Object
com.easypost.service.WebhookService
-
Method Summary
Modifier and TypeMethodDescriptionall()Get a list of all Webhook objects.Get a list of all Webhook objects.Create a Webhook object from a map of parameters.voidDelete this Webhook.Retrieve a Webhook object from the API.Update this webhook.Update this webhook.
-
Method Details
-
create
Create a Webhook object from a map of parameters.- Parameters:
params- the map of parameters- Returns:
- Webhook object
- Throws:
EasyPostException- when the request fails.
-
retrieve
Retrieve a Webhook object from the API.- Parameters:
id- the ID of the Webhook to retrieve- Returns:
- Webhook object
- Throws:
EasyPostException- when the request fails.
-
all
Get a list of all Webhook objects.- Returns:
- List of Webhook objects.
- Throws:
EasyPostException- when the request fails.
-
all
Get a list of all Webhook objects.- Parameters:
params- params for request- Returns:
- List of Webhook objects.
- Throws:
EasyPostException- when the request fails.
-
delete
Delete this Webhook.- Parameters:
id- The ID of webhook.- Throws:
EasyPostException- when the request fails.
-
update
Update this webhook.- Parameters:
id- The ID of webhook.- Returns:
- Webhook object
- Throws:
EasyPostException- when the request fails.
-
update
Update this webhook.- Parameters:
id- The ID of webhook.params- Map of parameters- Returns:
- Webhook object
- Throws:
EasyPostException- when the request fails.
-