PolarExpress.Events.RefundCreated (polar_express v0.1.5)

Copy Markdown View Source

Webhook event for refund.created.

Sent when a refund is created regardless of status.

Discord & Slack support: Full

The data field contains a PolarExpress.Schemas.Refund struct.

Summary

Functions

Returns the event type string.

Types

t()

@type t() :: %PolarExpress.Events.RefundCreated{
  data: PolarExpress.Schemas.Refund.t(),
  timestamp: String.t(),
  type: String.t()
}
  • type - Always "refund.created".
  • data - The event payload. See PolarExpress.Schemas.Refund.
  • timestamp - ISO 8601 timestamp of when the event occurred.

Functions

event_type()

@spec event_type() :: String.t()

Returns the event type string.