# `OpenPayments.Types.Continuation`
[🔗](https://github.com/interledger/open-payments-elixir/blob/v1.0.0/lib/open_payments/types/continuation.ex#L1)

Continuation data returned in a grant response's `continue` field.

Required `access_token` becomes a typed `ContinuationToken`; required `uri`
follows the schema's absolute-URI format and keeps its spelling. Optional `wait`
retains integer seconds as supplied, with no minimum or maximum declared by the
pinned schema. Omission becomes nil; explicit JSON null is invalid. Additional
JSON fields are retained in `extensions` at both object levels.

This type decodes response data without sleeping, polling, signing or making
requests. Timing and outgoing URL/header policy belong to continuation use.
Inspection exposes only wait metadata. Explicit map/JSON exports include the
continuation credential. Validate modified structs with `validate/1`;
`to_map/1` converts shape without validating it.

# `t`

```elixir
@type t() :: %OpenPayments.Types.Continuation{
  access_token: OpenPayments.Types.ContinuationToken.t(),
  extensions: %{optional(String.t()) =&gt; term()},
  uri: String.t(),
  wait: integer() | nil
}
```

# `from_map`

```elixir
@spec from_map(map()) :: {:ok, t()} | {:error, OpenPayments.Error.t()}
```

Decodes a continuation URI, credential and optional wait metadata.

# `to_map`

```elixir
@spec to_map(t()) :: map()
```

Converts to protocol fields, including the continuation token, without validating.

# `validate`

```elixir
@spec validate(t()) :: :ok | {:error, OpenPayments.Error.t()}
```

Revalidates typed continuation data, treating nil wait as omitted.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
