Files
fewo-stommer/app/Process/Models/PortalBookingModel.php
LarsandClaude Sonnet 5.5 8442d0a3d8 V2.1: Kanalfähigkeiten, Ausführungsvarianten, Dokumentenentkopplung, Portalbestätigung
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>
2026-11-05 07:54:11 +01:00

61 lines
1.9 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Process\Models;
use App\Enums\IntakeKind;
/**
* Common course of a booking that is already binding at a portal (A3–A5, E-036): no second acceptance and no own
* price – the portal's total is taken over. What follows is the binding course shared with our own requests; who
* answers for collection and contract documentation is fixed by the concrete model (decision O1).
*/
abstract class PortalBookingModel extends ProcessModel
{
public static function intakes(): array
{
return [IntakeKind::Booking];
}
/**
* Version 2 (V2.1): waits for the portal's confirmation where the channel says so (before the guest-facing steps; the
* occupation does not depend on it) and offers the booking information as a step of its own after the documents.
*/
public function steps(): array
{
$course = [];
foreach (InquiryModel::bindingCourse() as $step) {
$course[] = $step;
if ($step->module === 'documents.send') {
$course[] = Step::module('documents.booking_notice');
}
}
return [
Step::module('intake.record'),
Step::module('guest.details'),
Step::point(Point::AfterGuestIdentified),
Step::module('binding.portal'),
Step::module('portal.confirmation'),
Step::point(Point::AfterBinding),
...$course,
];
}
/**
* The course of version 1 (V2), kept for the cases that froze it.
*
* @return list<Step>
*/
protected function stepsOfVersion1(): array
{
return [
Step::module('intake.record'),
Step::module('guest.details'),
Step::point(Point::AfterGuestIdentified),
Step::module('binding.portal'),
Step::point(Point::AfterBinding),
...InquiryModel::bindingCourse(),
];
}
}