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>
73 lines
2.0 KiB
PHP
73 lines
2.0 KiB
PHP
<?php
|
|
|
|
namespace App\Process\Templates;
|
|
|
|
use App\Enums\Responsibility;
|
|
|
|
/**
|
|
* We create and send the contract documentation (booking record with our terms). Creation, filing, provision and
|
|
* dispatch remain configurable at the module (processing, contract_delivery, template).
|
|
*/
|
|
final class OwnContractDocumentation extends FunctionTemplate
|
|
{
|
|
public static function key(): string
|
|
{
|
|
return 'contract_docs.own';
|
|
}
|
|
|
|
public static function version(): int
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
public static function area(): TemplateArea
|
|
{
|
|
return TemplateArea::ContractDocuments;
|
|
}
|
|
|
|
public static function label(): string
|
|
{
|
|
return 'Eigene Vertragsdokumentation';
|
|
}
|
|
|
|
public static function purpose(): string
|
|
{
|
|
return 'Wir erstellen die Vertragsunterlagen aus Buchungsdaten und unseren Bedingungen, legen sie ab und stellen sie dem Gast bereit.';
|
|
}
|
|
|
|
public static function modules(): array
|
|
{
|
|
return ['documents.send', 'documents.booking_notice'];
|
|
}
|
|
|
|
public static function responsibility(): Responsibility
|
|
{
|
|
return Responsibility::Landlord;
|
|
}
|
|
|
|
public static function capabilityRequirements(): array
|
|
{
|
|
return ['provides_contract_documents' => false];
|
|
}
|
|
|
|
public static function requires(): array
|
|
{
|
|
return ['guest.identified'];
|
|
}
|
|
|
|
public static function provides(): array
|
|
{
|
|
return [TemplateArea::ContractDocuments->result(), 'contract.documents_by_us'];
|
|
}
|
|
|
|
public static function dimensions(): array
|
|
{
|
|
return [
|
|
'Vertragsbedingungen' => 'Das Portal verantwortet den Vertragsabschluss; die Bedingungen der Unterlagen sind unsere.',
|
|
'Erstellung' => 'Durch uns (Vorlage der Wohnung oder des Kanals).',
|
|
'Bereitstellung / Versand' => 'Durch uns; automatisch, nach Freigabe oder von Hand, per E-Mail oder nur intern abgelegt.',
|
|
'Nachweis' => 'Gespeichertes Dokument und Versandvermerk am Vorgang.',
|
|
];
|
|
}
|
|
}
|