Antwortart (Auskunft/Angebot) und Reservierung sind entkoppelt (neue Einstellung inquiry_answer; pre_reservation bleibt die Reservierungsstrategie). Anlass-bezogene Absender für Anreise-Information und Bewertungsbitte; Schablonen liefern Standardwerte unterhalb aller einstellbaren Ebenen. A1/A2 bleiben Voreinstellungen und Altfassungen. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
63 lines
1.3 KiB
PHP
63 lines
1.3 KiB
PHP
<?php
|
||
|
||
namespace App\Process\Models;
|
||
|
||
use App\Enums\CaseType;
|
||
use App\Enums\Responsibility;
|
||
|
||
/**
|
||
* A2 – request of an intermediary answered with our own binding offer.
|
||
*/
|
||
final class A2OfferModel extends InquiryModel
|
||
{
|
||
public static function key(): string
|
||
{
|
||
return 'a2.offer';
|
||
}
|
||
|
||
public static function version(): int
|
||
{
|
||
return 1;
|
||
}
|
||
|
||
public static function label(): string
|
||
{
|
||
return 'Portalanfrage mit Angebot';
|
||
}
|
||
|
||
public static function description(): string
|
||
{
|
||
return 'Die Anfrage eines Portals wird wie eine eigene behandelt: fehlende Angaben ergänzen, Zeitraum reservieren, verbindliches Angebot, Annahme.';
|
||
}
|
||
|
||
public static function caseTypes(): array
|
||
{
|
||
return [CaseType::A2];
|
||
}
|
||
|
||
public static function isLegacy(): bool
|
||
{
|
||
return true;
|
||
}
|
||
|
||
public static function composedBy(): ?string
|
||
{
|
||
return 'inquiry.request';
|
||
}
|
||
|
||
public static function presetTemplates(): array
|
||
{
|
||
return ['inquiry_answer' => 'inquiry.binding_offer'];
|
||
}
|
||
|
||
public static function fixes(): array
|
||
{
|
||
return ['pre_reservation' => true];
|
||
}
|
||
|
||
protected static function guestMessageOptions(): array
|
||
{
|
||
return [Responsibility::Landlord, Responsibility::Portal];
|
||
}
|
||
}
|