27 lines
901 B
PHP
27 lines
901 B
PHP
<?php
|
|
|
|
namespace App\EventPaymentModules\DTO;
|
|
|
|
/**
|
|
* Ausgabe von {@see \App\EventPaymentModules\EventPaymentModule::registrationSummary()}.
|
|
*
|
|
* Render-agnostisch: speist den Zahlungs-Abschnitt sowohl im Anmeldeabschluss (Vue) als auch in den Mails.
|
|
* Zwei Darstellungsformen:
|
|
* - strukturierte $lines (label/value) -- z.B. Überweisung (Kontoinhaber, IBAN, Verwendungszweck, Betrag),
|
|
* - $html -- frei konfigurierter Text (z.B. Barzahlung).
|
|
*/
|
|
final class RegistrationSummaryResponse
|
|
{
|
|
/** Gibt es überhaupt einen Zahlungs-Info-Block darzustellen? */
|
|
public bool $hasPaymentInformation = false;
|
|
|
|
/** @var array<int, array{label: string, value: string}> */
|
|
public array $lines = [];
|
|
|
|
/** Frei konfigurierter HTML-Text (alternativ zu $lines). */
|
|
public ?string $html = null;
|
|
|
|
/** Soll der GiroCode (QR) angezeigt werden? */
|
|
public bool $showGiroCode = false;
|
|
}
|