DodoPayments.Webhooks.Event (dodo_payments v0.1.0)

Copy Markdown View Source

A verified Dodo Payments webhook event.

Known event types decode to atoms such as :payment_succeeded. Dodo can add an event before an SDK release; an unknown type is retained losslessly in DodoPayments.UnknownEnum together with the complete payload and exact raw_body rather than rejected or converted into a new atom.

Summary

Types

t()

@type t() :: %DodoPayments.Webhooks.Event{
  business_id: String.t() | nil,
  data: term(),
  id: String.t() | nil,
  payload: map(),
  raw_body: binary(),
  timestamp: String.t() | integer() | nil,
  type: DodoPayments.Enums.decoded_webhook_event_type(),
  webhook_id: String.t()
}