Files
fewo-stommer/app/Process/Models/A5PortalBookingModel.php
T
LarsandClaude Sonnet 5.5 e95ba4f986 Schablonenkomposition: Basisprozess external.booking mit Platz für Finanz- und Dokumentenschablonen
Vier Schablonen (Eigenes/Portal-Inkasso, Eigene/Externe Vertragsdokumentation) in
app/Process/Templates, TemplateComposer prüft Ergebnisse, Verantwortlichkeiten, Ausschlüsse
und harte Modulabhängigkeiten. Der Plan friert die Schablonenversionen ein. A3–A5 bleiben
als Voreinstellungen; die vierte Kombination (eigenes Inkasso + externe Unterlagen) ist
darstellbar. Konfigurator-Logik und ConfigureChannelProcess kennen die Schablonenwahl.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 10:48:49 +01:00

66 lines
1.9 KiB
PHP
Raw 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;
/**
* 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 presetTemplates(): array
{
return ['collection' => 'collection.portal', 'contract_documents' => 'contract_docs.external'];
}
public static function fixes(): array
{
return ['payments' => 'portal', 'documents' => 'portal'];
}
}