Buchungskalender: Storno und Buchung idempotent bei Teilfehlern

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
knsoandClaude Opus 5.5 committed 2026-10-07 13:55:56 +00:00
1 parent 947e9da2e3
commit f7650fe883
5 files changed
+106 -11

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
// Stub: Task 7 ersetzt den Inhalt. Erstattung ueber Stripe Connect.
import { UkFehler } from './fehler.js'
export async function erstatte(ctx, anfrage, betragCent, { now } = {}) {
export async function erstatte(ctx, anfrage, betragCent, { now, idempotencyKey } = {}) {
if (!ctx?.einstellungen?.stripeAccountId) throw new UkFehler(409, 'online_aus')
return { erstattetCent: betragCent }
}