Accrue.Dunning (accrue v1.4.0)

Copy Markdown View Source

Public API for checking dunning state, enabling host applications to display in-app banners or alerts for active dunning campaigns without false positives from projection lag.

Summary

Functions

Returns true if the customer currently has an active dunning campaign, false otherwise. Uses the ledger state as the source of truth to avoid projection lag false positives.

Functions

requires_attention?(customer)

@spec requires_attention?(struct()) :: boolean()

Returns true if the customer currently has an active dunning campaign, false otherwise. Uses the ledger state as the source of truth to avoid projection lag false positives.