A Spark DSL extension for Ash resources representing billing customers (e.g., User or Organization).
Usage
defmodule MyApp.Accounts.User do
use Ash.Resource,
domain: MyApp.Accounts,
extensions: [AshBilling.Resource]
billing do
customer_id_attribute :stripe_customer_id
provider AshBilling.Providers.Stripe
end
endbilling
Configuration for billing customer functionality.
Options
| Name | Type | Default | Docs |
|---|---|---|---|
customer_id_attribute | atom | :stripe_customer_id | The attribute name on the resource that stores the billing customer ID. |
provider | module | AshBilling.Providers.Stripe | The billing provider module. |