Ein Eingang fuer alle Kanaele (Paket 4, Prozessarchitektur v0.10)
Portalbuchungen und -anfragen aus Kalender und Mail werden ueber PortalIntake zum Vorgang (nur bei sicherer Erkennung), Dubletten ueber Buchungsnummer, gleiches Portal mit gleichen Naechten und Spiegelung; Unsicheres wird geklaert. Portalstorno und -aenderung als Aufgabe am Vorgang ohne stille Stornierung. Schalter je Kanal (Aus als Standard, Beobachten, Anlegen, Anlegen + weiter), Eingangsprotokoll, Bestandsuebernahme mit Vorschau/Bericht/Ruecknahme, Sperrnachweis in drei Stufen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cf11c8a474
commit
ac9d20b812
29 files changed
+1952
-16
No files matched your search
@@ -5,6 +5,7 @@
|
||||
use App\Enums\BookingStatus;
|
||||
use App\Enums\IntakeKind;
|
||||
use App\Enums\OccupationKind;
|
||||
use App\Enums\ProcessingMode;
|
||||
use App\Exceptions\ReservationException;
|
||||
use App\Models\BlockedPeriod;
|
||||
use App\Models\Booking;
|
||||
@@ -31,7 +32,7 @@ class TakeOverExternalBooking
|
||||
public function __construct(private ConfirmBooking $confirm, private PortalPrice $price) {}
|
||||
|
||||
/**
|
||||
* @param array{guest?: ?array<string, ?string>, guests?: ?int, portal_reference?: ?string, portal_total?: ?int, notes?: ?string, guest_confirmed?: bool} $facts
|
||||
* @param array{guest?: ?array<string, ?string>, guests?: ?int, portal_reference?: ?string, portal_total?: ?int, notes?: ?string, guest_confirmed?: bool, processing_mode?: ?ProcessingMode} $facts
|
||||
*
|
||||
* @throws ReservationException
|
||||
*/
|
||||
@@ -73,6 +74,7 @@ public function handle(Property $property, Channel $channel, CarbonImmutable $ar
|
||||
'hold_expires_at' => null,
|
||||
'guest_confirmed_at' => ($facts['guest_confirmed'] ?? false) ? now() : null,
|
||||
'internal_notes' => filled($facts['notes'] ?? null) ? trim((string) $facts['notes']) : null,
|
||||
'processing_mode' => $facts['processing_mode'] ?? null,
|
||||
...$this->price->columns($property, $arrival, $departure, $guests, $portalTotal, $channel->name),
|
||||
]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user