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;
|
||
|
||
/**
|
||
* A4 – binding portal booking with shared handling: portal collection, our contract documentation (e.g. FeWo-direkt, R09).
|
||
*/
|
||
class A4PortalBookingModel extends PortalBookingModel
|
||
{
|
||
public static function key(): string
|
||
{
|
||
return 'a4.portal_booking';
|
||
}
|
||
|
||
public static function version(): int
|
||
{
|
||
return 2;
|
||
}
|
||
|
||
public static function label(): string
|
||
{
|
||
return 'Portalbuchung, Inkasso beim Portal';
|
||
}
|
||
|
||
public static function description(): string
|
||
{
|
||
return 'Das Portal bestätigt verbindlich und zieht das Geld des Gastes ein; die Vertragsdokumentation senden wir. Kommunikation, ergänzende Unterlagen und Anreiseinformation sind wählbar; die Auszahlung prüfen wir.';
|
||
}
|
||
|
||
public static function caseTypes(): array
|
||
{
|
||
return [CaseType::A4];
|
||
}
|
||
|
||
public static function capabilityRequirements(): array
|
||
{
|
||
return ['collects_payment' => true, 'provides_contract_documents' => false];
|
||
}
|
||
|
||
public static function responsibilities(): Responsibilities
|
||
{
|
||
return Responsibilities::of(
|
||
fixed: ['contract' => Responsibility::Portal, 'collection' => Responsibility::Portal, 'contract_documents' => Responsibility::Landlord],
|
||
variable: ['guest_messages' => [Responsibility::Landlord, Responsibility::Portal], '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.portal', 'contract_documents' => 'contract_docs.own'];
|
||
}
|
||
|
||
public static function fixes(): array
|
||
{
|
||
return ['payments' => 'portal', 'documents' => 'landlord'];
|
||
}
|
||
}
|