# `Accrue.Error.NotAttached`
[🔗](https://github.com/szTheory/accrue/blob/accrue-v1.0.0/lib/accrue/errors.ex#L178)

Raised when a payment method is referenced for a customer it is not
attached to (e.g., `set_default_payment_method/3` with a `pm_id` that
belongs to a different customer).

# `t`

```elixir
@type t() :: %Accrue.Error.NotAttached{
  __exception__: true,
  customer_id: term(),
  message: term(),
  payment_method_id: term()
}
```

---

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