# `Accrue.Billing.MeteredRenewalInvoice`
[🔗](https://github.com/szTheory/accrue/blob/accrue-v1.1.1/lib/accrue/billing/metered_renewal_invoice.ex#L1)

Authors one canonical local invoice for a closed metered renewal window.

# `author_invoice`

```elixir
@spec author_invoice(Ecto.UUID.t()) ::
  {:ok,
   %{
     invoice: Accrue.Billing.Invoice.t(),
     renewal: Accrue.Billing.MeteredRenewal.t()
   }}
  | {:error, term()}
```

---

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