Sumup.Membership (Sumup v1.0.0)

Copy Markdown View Source

A membership relation between the currently authenticated user and a resource (typically a merchant or organization), including the roles and effective permissions granted there.

Summary

Types

status()

@type status() :: :accepted | :pending | :expired | :disabled | :unknown

t()

@type t() :: %Sumup.Membership{
  attributes: map() | nil,
  created_at: DateTime.t() | nil,
  id: String.t(),
  invite: map() | nil,
  metadata: map() | nil,
  permissions: [String.t()],
  raw: map(),
  resource: map() | nil,
  resource_id: String.t() | nil,
  roles: [String.t()],
  status: status(),
  type: String.t() | nil,
  updated_at: DateTime.t() | nil
}