defmodule GitHub.Organization.Plan do @moduledoc """ Provides struct and types for a Organization.Plan """ use GitHub.Encoder @type full :: %__MODULE__{ __info__: map, filled_seats: integer | nil, name: String.t(), private_repos: integer, seats: integer | nil, space: integer } @type t :: %__MODULE__{ __info__: map, filled_seats: integer | nil, name: String.t() | nil, private_repos: integer | nil, seats: integer | nil, space: integer | nil } defstruct [:__info__, :filled_seats, :name, :private_repos, :seats, :space] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:full) do [ filled_seats: :integer, name: {:string, :generic}, private_repos: :integer, seats: :integer, space: :integer ] end def __fields__(:t) do [ filled_seats: :integer, name: {:string, :generic}, private_repos: :integer, seats: :integer, space: :integer ] end end