Lingo.Type.Subscription (Lingo v0.4.2)

Copy Markdown View Source

A user's subscription to one of the application's SKUs. status is :active, :ending (canceled, active until current_period_end) or :inactive.

Summary

Types

status()

@type status() :: :active | :inactive | :ending

t()

@type t() :: %Lingo.Type.Subscription{
  canceled_at: DateTime.t() | nil,
  country: String.t() | nil,
  current_period_end: DateTime.t() | nil,
  current_period_start: DateTime.t() | nil,
  entitlement_ids: [String.t()],
  id: String.t(),
  renewal_sku_ids: [String.t()] | nil,
  sku_ids: [String.t()],
  status: status() | integer(),
  user_id: String.t()
}