A Spark DSL extension for Ash resources representing processed webhook events.
Used for multi-node / distributed webhook deduplication across clustered application servers.
Security Notice
AshBilling.WebhookEventis an internal deduplication resource. Its actions must remain internal to the application and must never be exposed through public APIs (such asAshJsonApi,AshGraphql, or public user forms), as mutating internal deduplication fields (status,lease_token, etc.) could compromise webhook integrity.
Usage
defmodule MyApp.Billing.WebhookEvent do
use Ash.Resource,
domain: MyApp.Billing,
extensions: [AshBilling.WebhookEvent]
actions do
default_accept :*
defaults [:read, :create, :update, :destroy]
end
end