Package io.moov.sdk.models.components
Class WebhookEvent
- java.lang.Object
-
- io.moov.sdk.models.components.WebhookEvent
-
public class WebhookEvent extends java.lang.ObjectWebhookEventWebhook events are sent to your webhook URL when certain actions occur in the Moov API. You can subscribe to these events to receive real-time notifications.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookEvent.Builder
-
Constructor Summary
Constructors Constructor Description WebhookEvent(java.lang.String eventID, WebhookEventType type, WebhookData data, java.time.OffsetDateTime createdOn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebhookEvent.Builderbuilder()java.time.OffsetDateTimecreatedOn()WebhookDatadata()The data for the webhook event.booleanequals(java.lang.Object o)java.lang.StringeventID()Unique identifier for the webhook event.inthashCode()java.lang.StringtoString()WebhookEventTypetype()The type of event that occurred.WebhookEventwithCreatedOn(java.time.OffsetDateTime createdOn)WebhookEventwithData(WebhookData data)The data for the webhook event.WebhookEventwithEventID(java.lang.String eventID)Unique identifier for the webhook event.WebhookEventwithType(WebhookEventType type)The type of event that occurred.
-
-
-
Constructor Detail
-
WebhookEvent
public WebhookEvent(java.lang.String eventID, WebhookEventType type, WebhookData data, java.time.OffsetDateTime createdOn)
-
-
Method Detail
-
eventID
public java.lang.String eventID()
Unique identifier for the webhook event.
-
type
public WebhookEventType type()
The type of event that occurred.
-
data
public WebhookData data()
The data for the webhook event. The contents are based on the event type.
-
createdOn
public java.time.OffsetDateTime createdOn()
-
builder
public static WebhookEvent.Builder builder()
-
withEventID
public WebhookEvent withEventID(java.lang.String eventID)
Unique identifier for the webhook event.
-
withType
public WebhookEvent withType(WebhookEventType type)
The type of event that occurred.
-
withData
public WebhookEvent withData(WebhookData data)
The data for the webhook event. The contents are based on the event type.
-
withCreatedOn
public WebhookEvent withCreatedOn(java.time.OffsetDateTime createdOn)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-