# `LatticeStripe.SetupAttempt.SetupError`
[🔗](https://github.com/szTheory/lattice_stripe/blob/v2.2.2/lib/lattice_stripe/setup_attempt/setup_error.ex#L1)

Represents the historical `setup_error` nested object on a Stripe SetupAttempt.

Unknown fields from the Stripe API response are preserved in `:extra` for
forward compatibility.

# `t`

```elixir
@type t() :: %LatticeStripe.SetupAttempt.SetupError{
  advice_code: String.t() | nil,
  code: String.t() | nil,
  decline_code: String.t() | nil,
  doc_url: String.t() | nil,
  extra: map(),
  message: String.t() | nil,
  network_advice_code: String.t() | nil,
  network_decline_code: String.t() | nil,
  param: String.t() | nil,
  payment_method: LatticeStripe.PaymentMethod.t() | String.t() | map() | nil,
  type: String.t() | nil
}
```

# `from_map`

```elixir
@spec from_map(map() | nil) :: t() | nil
```

---

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