CaseActivities/CaseAutomation sind Fassaden über ProcessRunner. Verhaltensvergleich v0.11: 11 Abläufe und 198 Konstellationen gleich, beabsichtigte Abweichungen I-004/I-005 (F-001/F-002). Volle Suite vor U-B: 785/785. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
53 lines
1.3 KiB
PHP
53 lines
1.3 KiB
PHP
<?php
|
||
|
||
namespace App\Process\Models;
|
||
|
||
use App\Enums\CaseType;
|
||
|
||
/**
|
||
* A1 – request on our own way (website, direct): reserving request, binding offer, acceptance.
|
||
*/
|
||
final class A1OfferModel extends InquiryModel
|
||
{
|
||
public static function key(): string
|
||
{
|
||
return 'a1.offer';
|
||
}
|
||
|
||
public static function version(): int
|
||
{
|
||
return 1;
|
||
}
|
||
|
||
public static function label(): string
|
||
{
|
||
return 'Angebot mit Vorreservierung';
|
||
}
|
||
|
||
public static function description(): string
|
||
{
|
||
return 'Die Anfrage reserviert den Zeitraum; sind alle Angaben da, geht das verbindliche Angebot mit Vertragsentwurf an den Gast, der es annimmt.';
|
||
}
|
||
|
||
public static function caseTypes(): array
|
||
{
|
||
return [CaseType::A1];
|
||
}
|
||
|
||
public static function fixes(): array
|
||
{
|
||
return ['pre_reservation' => true];
|
||
}
|
||
|
||
public function variants(): array
|
||
{
|
||
return [
|
||
Variant::make('standard', 'Angebot mit Vorreservierung'),
|
||
Variant::make('loyalty', 'Angebot mit Stammgastrabatt (Architekturnachweis, nur im Prozess-Tester)')
|
||
->testerOnly()
|
||
->insert(Point::AfterGuestIdentified, 'guest.loyalty_status')
|
||
->insert(Point::BeforePriceFixing, 'pricing.loyalty_discount'),
|
||
];
|
||
}
|
||
}
|