Files
fewo-stommer/app/Process/Models/A3PortalBookingModel.php
LarsandClaude Sonnet 5.5 221ce8ca81 Anfrage-Basisprozess inquiry.request mit Schablonen für Antwort und Gastkommunikation
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>
2026-11-05 12:40:22 +01:00

71 lines
1.9 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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'];
}
}