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>
66 lines
1.8 KiB
PHP
66 lines
1.8 KiB
PHP
<?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 presetTemplates(): array
|
||
{
|
||
return ['collection' => 'collection.own', 'contract_documents' => 'contract_docs.own'];
|
||
}
|
||
|
||
public static function fixes(): array
|
||
{
|
||
return ['payments' => 'landlord', 'documents' => 'landlord'];
|
||
}
|
||
}
|