Current section

Files

Jump to
polarex lib polarex schemas organization_access_token_update.ex
Raw

lib/polarex/schemas/organization_access_token_update.ex

defmodule Polarex.OrganizationAccessTokenUpdate do
@moduledoc """
Provides struct and type for a OrganizationAccessTokenUpdate
"""
@type t :: %__MODULE__{comment: String.t() | nil, scopes: [String.t()] | nil}
defstruct [:comment, :scopes]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
comment: {:union, [:string, :null]},
scopes:
{:union,
[
[
enum: [
"openid",
"profile",
"email",
"user:read",
"user:write",
"organizations:read",
"organizations:write",
"custom_fields:read",
"custom_fields:write",
"discounts:read",
"discounts:write",
"checkout_links:read",
"checkout_links:write",
"checkouts:read",
"checkouts:write",
"transactions:read",
"transactions:write",
"payouts:read",
"payouts:write",
"products:read",
"products:write",
"benefits:read",
"benefits:write",
"events:read",
"events:write",
"meters:read",
"meters:write",
"files:read",
"files:write",
"subscriptions:read",
"subscriptions:write",
"customers:read",
"customers:write",
"members:read",
"members:write",
"wallets:read",
"wallets:write",
"disputes:read",
"customer_meters:read",
"customer_sessions:write",
"member_sessions:write",
"customer_seats:read",
"customer_seats:write",
"orders:read",
"orders:write",
"refunds:read",
"refunds:write",
"payments:read",
"metrics:read",
"metrics:write",
"webhooks:read",
"webhooks:write",
"license_keys:read",
"license_keys:write",
"customer_portal:read",
"customer_portal:write",
"notifications:read",
"notifications:write",
"notification_recipients:read",
"notification_recipients:write",
"organization_access_tokens:read",
"organization_access_tokens:write"
]
],
:null
]}
]
end
end