Paradaux
IssuesPAR-59BacklogOpen ↗
0

Add webhook support for fines

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.

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

  • tesks changed status to Status → BacklogJun 4, 2026, 8:54 PM
  • tesks description: Description updatedJun 4, 2026, 10:02 AM
  • tesks commentedJun 4, 2026, 9:57 AM
  • tesks assigned Assigned to rianJun 4, 2026, 9:26 AM
  • tesks moved to Moved to TreasuryJun 4, 2026, 9:26 AM
  • tesks updated labels (Labels updated)Jun 4, 2026, 9:26 AM