Accrue.Emails.DunningActionRequired (accrue v1.2.0)

Copy Markdown View Source

Dunning step-2 ("action required") email — D-01, D-02.

The firmer second touch in the default dunning campaign (after_days: 5). The first payment retry has still failed; this email names the consequence (loss of access) and an approximate cutoff date, and deep-links the portal update-payment-method flow via the @update_pm_url CTA. Carries no invoice PDF (only :invoice_finalized/:invoice_paid attach one).

Clones the Accrue.Emails.CardExpiringSoon Mailglass + Phoenix.Component convention. The new atom :dunning_action_required 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()