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

A response to continuing a grant, with typed continuation and result data.

Required `continue` contains a `Continuation`. Optional `access_token` and
`subject` become `AccessToken` and `Subject` structs. Either, both or neither
result may be returned; the initial grant response's exclusive interaction or
token branch does not apply here. Omitted results become nil, while explicit
JSON nulls are rejected. Additional JSON fields remain in `extensions`.

Predicates report typed result presence, without revalidating modified children,
verifying callbacks or establishing resource authorization. `continuation_only?/1`
means both recognized result fields are absent; it does not interpret extensions
or infer server lifecycle state. The codec does not wait, poll or make requests.

Inspection omits payload values. Explicit map/JSON exports include credentials,
subject identifiers and any card results. Use `validate/1` to revalidate manually
modified structs; `to_map/1` converts shape without validating it.

# `t`

```elixir
@type t() :: %OpenPayments.Types.GrantContinuationResponse{
  access_token: OpenPayments.Types.AccessToken.t() | nil,
  continue: OpenPayments.Types.Continuation.t(),
  extensions: %{optional(String.t()) =&gt; term()},
  subject: OpenPayments.Types.Subject.t() | nil
}
```

# `continuation_only?`

```elixir
@spec continuation_only?(t()) :: boolean()
```

Reports absence of both recognized result fields without inferring lifecycle state.

# `from_map`

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

Decodes a grant continuation response, including subject-only and continuation-only results.

# `has_access_token?`

```elixir
@spec has_access_token?(t()) :: boolean()
```

Reports typed access-token presence without revalidating its contents.

# `has_subject?`

```elixir
@spec has_subject?(t()) :: boolean()
```

Reports typed subject presence without revalidating its contents.

# `to_map`

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

Converts to protocol fields, including sensitive values, without validating.

# `validate`

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

Revalidates the continuation, optional typed results and extension data.

---

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