AshBilling.Subscription (ash_billing v0.1.1)

Copy Markdown View Source

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
end

Summary

Functions

billing_subscription(body)

(macro)