AshBilling.Resource (ash_billing v0.1.1)

Copy Markdown View Source

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
end

Summary

Functions

billing(body)

(macro)