Files
fewo-stommer/app/Process/Templates/ExternalContractDocuments.php
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

69 lines
2.0 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\Templates;
use App\Enums\Responsibility;
/**
* The portal provides the binding contract documents to the guest. We create and send no contract of our own; the
* evidence is the portal's confirmation. Whatever the portal's documents say about payments, our payment handling
* follows the collection template – the two areas are independent.
*/
final class ExternalContractDocuments extends FunctionTemplate
{
public static function key(): string
{
return 'contract_docs.external';
}
public static function version(): int
{
return 1;
}
public static function area(): TemplateArea
{
return TemplateArea::ContractDocuments;
}
public static function label(): string
{
return 'Externe Vertragsunterlagen';
}
public static function purpose(): string
{
return 'Das Portal stellt dem Gast die verbindlichen Vertragsunterlagen bereit. Wir halten Buchungsdaten und den Nachweis der Portalbestätigung fest und versenden keinen eigenen Vertrag.';
}
public static function modules(): array
{
return ['documents.send', 'documents.booking_notice'];
}
public static function responsibility(): Responsibility
{
return Responsibility::Portal;
}
public static function capabilityRequirements(): array
{
return ['provides_contract_documents' => true];
}
public static function provides(): array
{
return [TemplateArea::ContractDocuments->result(), 'contract.documents_by_portal'];
}
public static function dimensions(): array
{
return [
'Vertragsbedingungen' => 'Das Portal verantwortet Abschluss und Bedingungen.',
'Erstellung' => 'Durch das Portal.',
'Bereitstellung / Versand' => 'Durch das Portal; wir senden keinen Vertrag. Die Buchungsinformation bleibt einzeln einstellbar.',
'Nachweis' => 'Bestätigung des Portals (E-Mail oder Vermerk des Vermieters).',
];
}
}