A Spark DSL extension for Ash resources storing subscriptions in the database.
Usage
defmodule MyApp.Billing.Subscription do
use Ash.Resource,
domain: MyApp.Billing,
extensions: [AshBilling.Subscription]
billing_subscription do
customer_relationship :user
provider AshBilling.Providers.Stripe
end
endbilling_subscription
Configuration for billing subscription resources.
Options
| Name | Type | Default | Docs |
|---|---|---|---|
provider | module | AshBilling.Providers.Stripe | The billing provider module. |
customer_relationship | atom | The relationship linking to the customer resource. |