PolarExpress.Events.CustomerStateChanged (polar_express v0.1.5)

Copy Markdown View Source

Webhook event for customer.state_changed.

Sent when a customer state has changed.

It's triggered when:

  • Customer is created, updated or deleted.
  • A subscription is created or updated.
  • A benefit is granted or revoked.

Discord & Slack support: Basic

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

Summary

Functions

Returns the event type string.

Types

t()

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

Functions

event_type()

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

Returns the event type string.