Package com.onfido.models
Class Webhook
- java.lang.Object
-
- com.onfido.models.Webhook
-
public final class Webhook extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhook.Request
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)booleangetEnabled()Determines if the webhook should be active.List<String>getEnvironments()The environments to be usedList<String>getEvents()The events that should be published to the webhook.StringgetHref()The URI of this resourceStringgetId()The unique identifier for the webhookStringgetToken()The webhook token (read more about this in the “Webhook security” sectionStringgetUrl()The url to listen to notifications (must be HTTPS)inthashCode()static Webhook.Requestrequest()StringtoString()
-
-
-
Method Detail
-
request
public static Webhook.Request request()
-
getId
public String getId()
The unique identifier for the webhook- Returns:
- The unique identifier for the webhook
-
getUrl
public String getUrl()
The url to listen to notifications (must be HTTPS)- Returns:
- The url to listen to notifications (must be HTTPS)
-
getEnabled
public boolean getEnabled()
Determines if the webhook should be active. If omitted, will be set to true by default- Returns:
- Determines if the webhook should be active. If omitted, will be set to true by default
-
getEvents
public List<String> getEvents()
The events that should be published to the webhook. If omitted, all events will be subscribed by default. You can read about the supported events- Returns:
- The events that should be published to the webhook. If omitted, all events will be subscribed by default. You can read about the supported events
-
getToken
public String getToken()
The webhook token (read more about this in the “Webhook security” section- Returns:
- The webhook token (read more about this in the “Webhook security” section
-
getHref
public String getHref()
The URI of this resource- Returns:
- The URI of this resource
-
getEnvironments
public List<String> getEnvironments()
The environments to be used- Returns:
- The environments to be used
-
-