Accrue.Integrations.Chimeway (accrue v1.2.0)

Copy Markdown View Source

Off-by-default Chimeway dunning engine adapter for Accrue (DUN-03).

Conditionally compiled: when the optional :chimeway dep is absent (the default build), this defmodule block is elided entirely and Accrue.Integrations.Chimeway is never defined. See the file header comment for the full 4-pattern rationale.

Opting in

Add to the host mix.exs:

{:chimeway, "~> 1.0"}

Then configure in config/config.exs:

config :accrue, dunning: [engine: Accrue.Integrations.Chimeway]

The host must also start Chimeway in their supervision tree and run Chimeway's own migrations per Chimeway's install guide.

v1.40 scope

Email-only, :immediate orchestration. DunningNotifier.workflow/2 is intentionally omitted — with :immediate orchestration, Chimeway.trigger/3 delivers the dunning email immediately with no WorkflowRun created. Signal.track("payment_recovered") is a safe no-op in this mode (correct because Accrue's anchor-clear prevents future start_campaign calls).

Multi-channel and multi-step workflow orchestration are deferred to a future v1.x minor.