- IMAP-Abruf jede Minute (webklex/php-imap, ohne PHP-imap-Erweiterung) oder signierter Push von n8n - Parser für Buchungs-, Storno- und Anfrage-Mails (de/en), Buchungsnummer, An-/Abreise - Erkannte Buchungen werden sofort gesperrt und an handgepflegte Portale weitergegeben; Kalender-Abgleich übernimmt bzw. ersetzt Mail-Sperren - Unklare Mails: Prüf-Mail + Admin-Liste Portal-E-Mails mit Aktion Sperre anlegen - Überwachung des Postfachs in Monitor und /health/sync Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
477 B
PHP
22 lines
477 B
PHP
<?php
|
|
|
|
namespace App\Channels\Mail;
|
|
|
|
use App\Enums\PortalEmailType;
|
|
use Carbon\CarbonImmutable;
|
|
|
|
final readonly class ParsedPortalMail
|
|
{
|
|
public function __construct(
|
|
public PortalEmailType $type,
|
|
public ?CarbonImmutable $startsOn = null,
|
|
public ?CarbonImmutable $endsOn = null,
|
|
public ?string $reference = null,
|
|
) {}
|
|
|
|
public function hasPeriod(): bool
|
|
{
|
|
return $this->startsOn !== null && $this->endsOn !== null;
|
|
}
|
|
}
|