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
1.9 KiB
PHP
71 lines
1.9 KiB
PHP
<?php
|
||
|
||
namespace App\Process\Models;
|
||
|
||
use App\Enums\CaseType;
|
||
use App\Enums\Responsibility;
|
||
|
||
/**
|
||
* A3 – binding portal booking with our own handling (e.g. Destination Solutions, R08).
|
||
*/
|
||
class A3PortalBookingModel extends PortalBookingModel
|
||
{
|
||
public static function key(): string
|
||
{
|
||
return 'a3.portal_booking';
|
||
}
|
||
|
||
public static function version(): int
|
||
{
|
||
return 2;
|
||
}
|
||
|
||
public static function label(): string
|
||
{
|
||
return 'Portalbuchung, eigene Abwicklung';
|
||
}
|
||
|
||
public static function description(): string
|
||
{
|
||
return 'Das Portal bestätigt verbindlich; Vertragsunterlagen, Zahlungsforderung und -überwachung sowie Gastkommunikation übernehmen wir.';
|
||
}
|
||
|
||
public static function caseTypes(): array
|
||
{
|
||
return [CaseType::A3];
|
||
}
|
||
|
||
public static function capabilityRequirements(): array
|
||
{
|
||
return ['collects_payment' => false, 'provides_contract_documents' => false];
|
||
}
|
||
|
||
public static function responsibilities(): Responsibilities
|
||
{
|
||
return Responsibilities::of(
|
||
fixed: ['contract' => Responsibility::Portal, 'collection' => Responsibility::Landlord, 'contract_documents' => Responsibility::Landlord],
|
||
variable: ['guest_messages' => [Responsibility::Landlord], 'supplementary_documents' => [Responsibility::Landlord, Responsibility::Nobody], '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.own', 'contract_documents' => 'contract_docs.own'];
|
||
}
|
||
|
||
public static function fixes(): array
|
||
{
|
||
return ['payments' => 'landlord', 'documents' => 'landlord'];
|
||
}
|
||
}
|