AshBilling.WebhookSync (ash_billing v0.1.1)

Copy Markdown View Source

Synchronizes incoming billing webhook events with Ash resources.

Summary

Functions

Processes a verified billing webhook event and synchronizes database state.

Functions

sync_event(event, opts)

Processes a verified billing webhook event and synchronizes database state.

Options

  • :customer_resource - The Ash resource for customers (e.g., MyApp.Accounts.User).
  • :subscription_resource - The Ash resource for subscriptions (e.g., MyApp.Billing.Subscription).
  • :domain - The Ash domain module to execute actions with.
  • :authorize? - Whether to perform authorization checks. Defaults to false so webhooks run without requiring an active actor.
  • :actor - Optional system actor to run actions on behalf of.
  • :tenant - Optional tenant identifier for multitenant deployments.