Creating Participation refunds

This commit is contained in:
2026-09-03 21:23:26 +02:00
parent 9c4c28e566
commit 6a183d6498
55 changed files with 3985 additions and 42 deletions
@@ -0,0 +1,24 @@
<?php
use App\Domains\ParticipantRefund\Controllers\AcceptRefundController;
use App\Domains\ParticipantRefund\Controllers\CancelRefundController;
use App\Domains\ParticipantRefund\Controllers\RefundDocumentController;
use App\Domains\ParticipantRefund\Controllers\ReleaseRefundController;
use App\Middleware\IdentifyTenant;
use Illuminate\Support\Facades\Route;
Route::prefix('api/v1')
->group(function () {
Route::middleware(IdentifyTenant::class)->group(function () {
Route::prefix('participant-refund')->group(function () {
// Der Teili bestätigt über den Token aus seiner Mail -- ohne Login.
Route::post('{refundToken}/accept', AcceptRefundController::class);
Route::middleware(['auth'])->group(function () {
Route::post('{participantIdentifier}/release', ReleaseRefundController::class);
Route::post('{refundToken}/cancel', CancelRefundController::class);
Route::get('{refundToken}/document', RefundDocumentController::class);
});
});
});
});
@@ -0,0 +1,10 @@
<?php
use App\Domains\ParticipantRefund\Controllers\RefundPageController;
use App\Middleware\IdentifyTenant;
use Illuminate\Support\Facades\Route;
Route::middleware(IdentifyTenant::class)->group(function () {
// Bewusst ohne `auth`: die Seite ist der Link aus der Mail an den Teili.
Route::get('/rueckerstattung/{refundToken}', RefundPageController::class);
});