# `Accrue.Dunning`
[🔗](https://github.com/szTheory/accrue/blob/accrue-v1.5.1/lib/accrue/dunning.ex#L1)

Public API for checking dunning state, enabling host applications to 
display in-app banners or alerts for active dunning campaigns without 
false positives from projection lag.

# `requires_attention?`

```elixir
@spec requires_attention?(struct()) :: boolean()
```

Returns `true` if the customer currently has an active dunning campaign,
`false` otherwise. Uses the ledger state as the source of truth to avoid
projection lag false positives.

---

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