Package africa.sendbyte.webhooks
Class WebhookEndpoint
java.lang.Object
africa.sendbyte.webhooks.WebhookEndpoint
A registered webhook endpoint that SendByte delivers events to.
The secret is only populated on the Webhooks.create(java.lang.String)
response — it is shown once and never returned again. Pass it to
WebhookSignature to verify incoming deliveries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe subscribed event types.getId()Unique endpoint identifier (prefixedwh_).The signing secret (whsec_...).getUrl()The HTTPS destination URL.booleantrueif the endpoint has been disabled.booleantrueif this endpoint subscribes to every event type.voidsetCreatedAt(String createdAt) voidsetDisabled(boolean disabled) voidvoidvoidvoid
-
Constructor Details
-
WebhookEndpoint
public WebhookEndpoint()
-
-
Method Details
-
getId
Unique endpoint identifier (prefixedwh_). -
setId
-
getUrl
The HTTPS destination URL. -
setUrl
-
getEvents
The subscribed event types. Empty ornullmeans all events. -
setEvents
-
receivesAllEvents
public boolean receivesAllEvents()trueif this endpoint subscribes to every event type. -
isDisabled
public boolean isDisabled()trueif the endpoint has been disabled. -
setDisabled
public void setDisabled(boolean disabled) -
getSecret
The signing secret (whsec_...). Present only on the create response. -
setSecret
-
getCreatedAt
-
setCreatedAt
-