PolarExpress.Events.SubscriptionRevoked (polar_express v0.1.5)

Copy Markdown View Source

Webhook event for subscription.revoked.

Sent when a subscription is revoked and the user loses access immediately. Happens when the subscription is canceled or payment retries are exhausted (status becomes unpaid).

For payment failures that can still be recovered, see subscription.past_due.

Discord & Slack support: Full

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

Summary

Functions

Returns the event type string.

Types

t()

@type t() :: %PolarExpress.Events.SubscriptionRevoked{
  data: PolarExpress.Schemas.Subscription.t(),
  timestamp: String.t(),
  type: String.t()
}

Functions

event_type()

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

Returns the event type string.