Accrue.Emails.DunningFinalNotice (accrue v1.3.0)

Copy Markdown View Source

Dunning step-3 ("final notice") email — D-01, D-02.

The urgent, last-chance third touch in the default dunning campaign (after_days: 12, scheduled to precede the grace-day sweeper's terminal action). Warns that the subscription will be terminated on the cutoff date unless payment succeeds, and deep-links the portal update-payment-method flow via the @update_pm_url CTA. Carries no invoice PDF.

Clones the Accrue.Emails.CardExpiringSoon Mailglass + Phoenix.Component convention. The new atom :dunning_final_notice is the published-API commitment (resolved via Accrue.Workers.Mailer.default_template/1).

Summary

Functions

deliver(msg, opts \\ [])

Callback implementation for Mailglass.Mailable.deliver/2.

deliver_later(msg, opts \\ [])

Callback implementation for Mailglass.Mailable.deliver_later/2.

message(assigns)

@spec message(map()) :: Mailglass.Message.t()

new(assigns \\ [])

render(assigns)

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

render(msg, template, assigns)

Callback implementation for Mailglass.Mailable.render/3.

render_text(assigns)

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

subject(assigns)

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