participantRefunds->getByToken($refundToken); $acceptRequest = new AcceptRefundRequest( refund: $refund, accountOwner: (string) $request->input('accountOwner'), accountIban: (string) $request->input('accountIban'), declarationAccepted: $request->boolean('declarationAccepted'), ); $response = new AcceptRefundCommand($acceptRequest)->execute(); // Immer Status 200: der HttpClient des Frontends verwirft Antworten mit Fehlerstatus, die // Feldfehler kämen dort nie an (siehe resources/js/components/HttpClient.js). return response()->json([ 'status' => $response->success ? 'success' : 'error', 'message' => $response->message, 'error_types' => $response->errorTypes, ]); } }