Invoice finalized notification (MAIL-07).
Sent when Stripe emits invoice.finalized. The PDF-attachment branch
is wired by Accrue.Workers.Mailer in Plan 06-07 — this module only
provides the subject/body. The template embeds
Accrue.Invoices.Components.invoice_header/1, line_items/1, and
totals/1 via Accrue.Emails.HtmlBridge inside <mj-raw> blocks so
email and PDF share one component library (single source of truth).
Summary
Functions
Returns the raw MJML template. Useful for debugging rendering issues.
Safely render the MJML template using Phoenix.HTML