Buchungskalender: Storno und Erstattung getrennt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
knsoandClaude Opus 5.5 committed 2026-10-07 13:58:17 +00:00
1 parent f7650fe883
commit 1d2ca2791d
3 files changed
+110 -53

No files matched your search

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