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>
71 lines
2.0 KiB
PHP
71 lines
2.0 KiB
PHP
<?php
|
||
|
||
namespace App\Process\Models;
|
||
|
||
use App\Enums\CaseType;
|
||
use App\Enums\Responsibility;
|
||
|
||
/**
|
||
* A5 – binding portal booking handled largely by the portal: collection and contract documentation at the portal.
|
||
*/
|
||
class A5PortalBookingModel extends PortalBookingModel
|
||
{
|
||
public static function key(): string
|
||
{
|
||
return 'a5.portal_booking';
|
||
}
|
||
|
||
public static function version(): int
|
||
{
|
||
return 2;
|
||
}
|
||
|
||
public static function label(): string
|
||
{
|
||
return 'Portalbuchung, weitgehend beim Portal';
|
||
}
|
||
|
||
public static function description(): string
|
||
{
|
||
return 'Das Portal bestätigt verbindlich, zieht das Geld ein und liefert die Vertragsunterlagen; wir übernehmen nur die eigenen lokalen Aufgaben und prüfen die Auszahlung.';
|
||
}
|
||
|
||
public static function caseTypes(): array
|
||
{
|
||
return [CaseType::A5];
|
||
}
|
||
|
||
public static function capabilityRequirements(): array
|
||
{
|
||
return ['collects_payment' => true, 'provides_contract_documents' => true];
|
||
}
|
||
|
||
public static function responsibilities(): Responsibilities
|
||
{
|
||
return Responsibilities::of(
|
||
fixed: ['contract' => Responsibility::Portal, 'collection' => Responsibility::Portal, 'contract_documents' => Responsibility::Portal],
|
||
variable: ['guest_messages' => [Responsibility::Portal, Responsibility::Landlord], 'supplementary_documents' => [Responsibility::Nobody, Responsibility::Landlord], 'local_services' => [Responsibility::Landlord]],
|
||
);
|
||
}
|
||
|
||
public static function isLegacy(): bool
|
||
{
|
||
return true;
|
||
}
|
||
|
||
public static function composedBy(): ?string
|
||
{
|
||
return 'external.booking';
|
||
}
|
||
|
||
public static function presetTemplates(): array
|
||
{
|
||
return ['collection' => 'collection.portal', 'contract_documents' => 'contract_docs.external'];
|
||
}
|
||
|
||
public static function fixes(): array
|
||
{
|
||
return ['payments' => 'portal', 'documents' => 'portal'];
|
||
}
|
||
}
|