events->getById($eventId); if ($event === null) { return response()->json(['status' => 'error', 'message' => 'Die Veranstaltung wurde nicht gefunden.']); } // Das Kontoauszug-Format kommt vom Mandanten, nicht aus dem Event-Snapshot: Ein Bankwechsel // muss sofort auch für laufende Aktionen gelten. $configuration = $this->paymentMethods->tenantConfiguration(PaymentMethod::PAYMENT_ACCOUNT_TRANSACTION); $response = new ParseBankStatementCommand(new ParseBankStatementRequest( event: $event, file: $request->file('statement'), configuration: $configuration, ))->execute(); return response()->json([ 'status' => $response->success ? 'success' : 'error', 'message' => $response->message, 'rows' => $response->rows, 'participants' => $response->participants, 'skipped' => $response->skippedOlderThanWatermark, ]); } }