Paradaux

PAR-59

0

Add webhook support for fines

Pending ReleaserianTreasuryFeature

Post a webhook (Discord) when a fine is issued/revoked, like the tax-cycle webhook.

Technical notes — A webhook mechanism exists but is tax-cycle-only: TaxWebhookServiceImpl.sendCycleReport POSTs a Discord embed via java.net.http.HttpClient, configured under tax.webhook.* (DiscordWebhookConfiguration). Fines (GovServiceImpl.issueFine/revokeFine) post nothing. Add sendFineNotification(GovernmentFine) reusing the same HttpClient/embed pattern, a fines.webhook.* config block, and a fire-and-forget call from issueFine/revokeFine after the ledger transfer succeeds. Pairs with PAR-48.

Resources

Comments

tesks · Jun 4, 2026, 9:57 AM

Code context — A webhook mechanism exists but is tax-cycle-only: TaxWebhookServiceImpl.sendCycleReport POSTs a Discord embed via java.net.http.HttpClient, configured under tax.webhook.* (DiscordWebhookConfiguration). Fines (GovServiceImpl.issueFine/revokeFine) post nothing.

Approach: add sendFineNotification(GovernmentFine) reusing the same HttpClient/embed pattern, a fines.webhook.* config block, and a fire-and-forget call from issueFine/revokeFine after the ledger transfer succeeds. Pairs with PAR-48.

Activity

  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • ParadauxIO linked a pull request — PR #2 open — Last major release
  • tesks changed status to Status → Pending Release
  • ParadauxIO linked a commit — Commit 5d25ab0 — Add Discord webhook notifications for government fines (PAR-59)
  • tesks changed status to Status → In Progress
  • tesks changed status to Status → Backlog
  • tesks description: Description updated
  • tesks commented
  • tesks moved to Moved to Treasury
  • tesks updated labels (Labels updated)
  • tesks assigned Assigned to rian