GUI for Participant management

This commit is contained in:
2026-04-07 22:27:47 +02:00
parent 653e85b781
commit e6bd8c684d
20 changed files with 965 additions and 153 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Domains\Event\Actions\ManualCertificateOfConductionCheck;
use App\Enumerations\EfzStatus;
use Illuminate\Support\Facades\Http;
class ManualCertificateOfConductionCheckCommand {
function __construct(public ManualCertificateOfConductionCheckRequest $request)
{}
public function execute() : ManualCertificateOfConductionCheckResponse {
$response = new ManualCertificateOfConductionCheckResponse();
$this->request->participant->efz_status = EfzStatus::EFZ_STATUS_CHECKED_VALID;
$this->request->participant->save();
$response->success = true;
return $response;
}
}

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Domains\Event\Actions\ManualCertificateOfConductionCheck;
use App\Models\EventParticipant;
class ManualCertificateOfConductionCheckRequest {
function __construct(public EventParticipant $participant)
{
}
}

View File

@@ -0,0 +1,14 @@
<?php
namespace App\Domains\Event\Actions\ManualCertificateOfConductionCheck;
use App\Enumerations\EfzStatus;
class ManualCertificateOfConductionCheckResponse {
public bool $success;
public function __construct()
{
$this->success = false;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Domains\Event\Actions\ParticipantPayment;
class ParticipantPaymentCommand {
public function __construct(public ParticipantPaymentRequest $request) {
}
public function execute() : ParticipantPaymentResponse {
$response = new ParticipantPaymentResponse();
$this->request->participant->amount_paid = $this->request->amountPaid;
$this->request->participant->save();
$response->success = true;
return $response;
}
}

View File

@@ -0,0 +1,16 @@
<?php
namespace App\Domains\Event\Actions\ParticipantPayment;
use App\Models\EventParticipant;
use App\ValueObjects\Amount;
class ParticipantPaymentRequest {
public EventParticipant $participant;
public Amount $amountPaid;
public function __construct(EventParticipant $participant, Amount $amountPaid) {
$this->participant = $participant;
$this->amountPaid = $amountPaid;
}
}

View File

@@ -0,0 +1,7 @@
<?php
namespace App\Domains\Event\Actions\ParticipantPayment;
class ParticipantPaymentResponse {
public bool $success = false;
}