AuroraMeter.Schema.Subscription (Aurora Meter v0.1.0)

View Source

A tenant's plan assignment. Created locally by AuroraMeter.subscribe/2 (free) or synced from the billing provider (Pro). One row per tenant.

Summary

Functions

Builds a changeset for a subscription.

Types

t()

@type t() :: %AuroraMeter.Schema.Subscription{
  __meta__: term(),
  current_period_end: term(),
  current_period_start: term(),
  id: term(),
  inserted_at: term(),
  plan_id: term(),
  provider: term(),
  provider_customer_id: term(),
  provider_subscription_id: term(),
  status: term(),
  tenant_key: term(),
  updated_at: term()
}

Functions

changeset(subscription, attrs)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Builds a changeset for a subscription.