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
@type t() :: %PolarExpress.Events.CustomerStateChanged{ data: PolarExpress.Schemas.CustomerState.t(), timestamp: String.t(), type: String.t() }
type- Always"customer.state_changed".data- The event payload. SeePolarExpress.Schemas.CustomerState.timestamp- ISO 8601 timestamp of when the event occurred.
Functions
@spec event_type() :: String.t()
Returns the event type string.