Modellwahl über Kanalfähigkeiten mit erklärten Einschränkungen, Abgleich alter Werte, Ausführungsvarianten je Modul, getrennte Vertrags-/Buchungsinformation, Warten auf die Portalbestätigung mit Eskalation und Wiederaufnahme (Fälle C und D getestet). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
<?php
|
||
|
||
namespace App\Enums;
|
||
|
||
use Filament\Support\Contracts\HasLabel;
|
||
|
||
/**
|
||
* Whether the guest of a binding booking gets a short booking information (without contract) from us (docs/
|
||
* Prozessarchitektur/V2.1/02 §4) – independent of the contract documentation, which stays with its own step.
|
||
*/
|
||
enum BookingNoticeMode: string implements HasLabel
|
||
{
|
||
case Off = 'off';
|
||
case Automatic = 'automatic';
|
||
case AutomaticUnlessPortalConfirmed = 'automatic_unless_portal_confirmed';
|
||
case Manual = 'manual';
|
||
|
||
public function getLabel(): string
|
||
{
|
||
return match ($this) {
|
||
self::Off => 'keine eigene Buchungsinformation',
|
||
self::Automatic => 'automatisch senden',
|
||
self::AutomaticUnlessPortalConfirmed => 'automatisch senden – außer das Portal hat nachweislich bestätigt',
|
||
self::Manual => 'von Hand senden',
|
||
};
|
||
}
|
||
|
||
public function isAutomatic(): bool
|
||
{
|
||
return in_array($this, [self::Automatic, self::AutomaticUnlessPortalConfirmed], true);
|
||
}
|
||
}
|