12#include "StripeKit/Models.h"
Handles verified webhook events, for applications using WebhookProcessor.
virtual EventDispatchResult dispatch(const VerifiedEventSignal &signal)=0
Handles one verified event.
virtual ~EventDispatcher()=default
Destroys the dispatcher instance.
EventDispatchResult
What a webhook handler reports back about an event.
@ FatalFailure
Needs intervention.
@ RetryableFailure
Something was temporarily unavailable.
@ Ignored
Not interesting to this application.
A Stripe event, as delivered by a webhook.
A verified event, with the delivery details that came with it.
EventEnvelope envelope
The event itself.
std::chrono::system_clock::time_point received_at
When the adapter received the delivery.
std::string delivery_id
Identifier the adapter assigned to this delivery, for tracing.