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

Quote permissions in a grant's `access-item` union.

Required `type` is `quote`; required `actions` is an array of unique strings from
create, read and read-all. Empty actions are allowed by the pinned schema.
Action order is preserved. The enclosing access-item union forbids fields other
than type and actions, including identifier, limits and extension metadata.

This type describes permissions without obtaining a grant or issuing a quote.
Struct literals can bypass validation. Call `validate/1` after constructing or
modifying a struct; `to_map/1` converts its shape without validating it.

# `t`

```elixir
@type t() :: %OpenPayments.Types.AccessQuote{actions: [String.t()], type: String.t()}
```

# `from_map`

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

Decodes a quote grant access entry using the union's field rules.

# `to_map`

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

Converts to protocol fields without validating.

# `validate`

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

Validates a quote access struct against the grant access contract.

---

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