Accrue.Emails.InvoiceFinalized (accrue v0.2.0)

Copy Markdown View Source

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

Functions

debug_mjml_template()

Returns the raw MJML template. Useful for debugging rendering issues.

render(assigns)

Safely render the MJML template using Phoenix.HTML

render_text(assigns)

@spec render_text(map()) :: String.t()

subject(arg1)

@spec subject(map()) :: String.t()