Direct payments for invoices

Events can be moved to archive and moved back
Fixed validation
This commit is contained in:
2026-05-12 16:04:15 +02:00
parent e2fb616565
commit 0cf9602958
42 changed files with 851 additions and 132 deletions
@@ -0,0 +1,22 @@
<?php
namespace App\Domains\Event\Actions\UnarchiveEvent;
class UnarchiveEventCommand {
public UnarchiveEventRequest $request;
public function __construct(UnarchiveEventRequest $request) {
$this->request = $request;
}
public function execute(): UnarchiveEventResponse {
$response = new UnarchiveEventResponse();
$this->request->event->archived = false;
$this->request->event->save();
$response->success = true;
return $response;
}
}
@@ -0,0 +1,13 @@
<?php
namespace App\Domains\Event\Actions\UnarchiveEvent;
use App\Models\Event;
class UnarchiveEventRequest {
public Event $event;
public function __construct(Event $event) {
$this->event = $event;
}
}
@@ -0,0 +1,11 @@
<?php
namespace App\Domains\Event\Actions\UnarchiveEvent;
class UnarchiveEventResponse {
public bool $success;
public function __construct() {
$this->success = false;
}
}