- CaseRequirements: Vor einem eigenen verbindlichen Angebot und vor der verbindlichen Bestätigung eines Buchungswunsches müssen Vor- und Nachname, E-Mail, vollständige Anschrift mit Land, Personenzahl und Zeitraum vorliegen – harter Blocker, auch von Hand (G2a, B3). Die Auskunft unter Vorbehalt bleibt ohne dieses Gate. - ContributeCaseFacts (S5): jede Angabe mit Herkunft und Ergebnis in case_facts; fehlend → übernommen, gleich → bestätigt, abweichend vom Gast → Prüfaufgabe (Kartei bleibt), Vermieterin maßgeblich, Zeitraum und Personen → Änderungswunsch; idempotent; danach einmal CaseAutomation. - ProvideGuestContact und Webformular nutzen den Fakteneingang. - Land als ISO-Code mit „Deutschland“ als änderbarem Formularstandard; guests.country ohne stillen Standardwert (B4). - Testdaten bestehender Tests um Anschriften ergänzt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
597 B
PHP
24 lines
597 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Enums\FactSource;
|
|
use App\Models\Booking;
|
|
use App\Process\FactContribution;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
/**
|
|
* Details arrived for a case and went through the common fact intake (after the commit). The data request of the
|
|
* case listens to stop reminders or to plan a follow-up question (CH-17).
|
|
*/
|
|
class CaseFactsContributed
|
|
{
|
|
use Dispatchable;
|
|
|
|
public function __construct(
|
|
public readonly Booking $booking,
|
|
public readonly FactContribution $contribution,
|
|
public readonly FactSource $source,
|
|
) {}
|
|
}
|