Lingo.Type.Entitlement (Lingo v0.4.2)

Copy Markdown View Source

An entitlement: a user's or guild's access to a SKU.

Summary

Types

entitlement_type()

@type entitlement_type() ::
  :purchase
  | :premium_subscription
  | :developer_gift
  | :test_mode_purchase
  | :free_purchase
  | :user_gift
  | :premium_purchase
  | :application_subscription

t()

@type t() :: %Lingo.Type.Entitlement{
  application_id: String.t(),
  consumed: boolean(),
  deleted: boolean(),
  ends_at: DateTime.t() | nil,
  guild_id: String.t() | nil,
  id: String.t(),
  sku_id: String.t(),
  starts_at: DateTime.t() | nil,
  subscription_id: String.t() | nil,
  type: entitlement_type(),
  user_id: String.t() | nil
}