Kurzanmeldungen
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domains\Event\Actions\ShortSignUp;
|
||||
|
||||
use App\Models\Event;
|
||||
use DateTime;
|
||||
|
||||
/**
|
||||
* Eingabedaten der verkürzten Anmeldung -- ausschließlich das, was der Kurz-Wizard tatsächlich erhebt.
|
||||
* Alle übrigen Pflichtangaben des Teilnehmers setzt der Command auf Platzhalter.
|
||||
*/
|
||||
class ShortSignUpRequest {
|
||||
function __construct(
|
||||
public Event $event,
|
||||
public ?int $user_id,
|
||||
public string $firstname,
|
||||
public string $lastname,
|
||||
public ?string $nickname,
|
||||
public DateTime $birthday,
|
||||
public string $email,
|
||||
public string $phone,
|
||||
/**
|
||||
* Tenant-ID des Stamms. Nur gefüllt, wenn die Veranstaltung mehrere teilnehmende Stämme hat --
|
||||
* bei genau einem wird dieser gesetzt, ohne zu fragen.
|
||||
*/
|
||||
public ?int $localGroupId,
|
||||
/** Kontaktperson: nur bei Minderjährigen erhoben. */
|
||||
public ?string $contactPerson,
|
||||
public ?string $contactEmail,
|
||||
public ?string $allergies,
|
||||
public ?string $intolerances,
|
||||
/** Slug aus `first_aid_permissions`; nur bei Minderjährigen erhoben. */
|
||||
public ?string $firstAidPermission,
|
||||
/** Slug aus `swimming_permissions`; nur bei Minderjährigen und nur wenn die Veranstaltung sie abfragt. */
|
||||
public ?string $swimmingPermission,
|
||||
public bool $foto_socialmedia,
|
||||
public bool $foto_print,
|
||||
public bool $foto_webseite,
|
||||
public bool $foto_partner,
|
||||
public bool $foto_intern,
|
||||
public ?string $paymentMethod,
|
||||
public array $paymentOptions = [],
|
||||
/** Antworten auf die Teilnahmeoptionen: [ question_key => value ]. */
|
||||
public array $participationOptions = [],
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user