fix(billing): flag open chargebacks that leave the reversal window #147
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment#147
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
chargebacksToReplayre-fetches open chargebacks younger than 180 days, the 100 newest (src/billing.ts:1892-1930).listChargebackscovers 14 days. The comment at:1890-1891says a reversal past the window is seen through its webhook, but the payment webhook does not fire on a reversal (https://docs.mollie.com/reference/webhooks lists only "A chargeback is received on the payment").Failing case: a chargeback cancels an unsent withdrawal refund. The dispute is reversed on day 200. The re-owed refund is never sent and nothing alerts.
Fix: correct the comment. When an open chargeback leaves the window, set a review note so the existing alert fires. Optionally subscribe to the
chargeback.reversedevent (https://docs.mollie.com/reference/chargebacks-api-webhooks).