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>
77 lines
2.0 KiB
PHP
77 lines
2.0 KiB
PHP
<?php
|
||
|
||
namespace App\Process\Templates;
|
||
|
||
use App\Enums\Responsibility;
|
||
|
||
/**
|
||
* Standard: the portal writes to the guest (e.g. FeWo-direkt). Suggests the portal as sender of the arrival information
|
||
* and the review request; each occasion can still be taken back by us individually. Needs the portal to write to guests.
|
||
*/
|
||
final class PortalGuestCommunication extends FunctionTemplate
|
||
{
|
||
public static function key(): string
|
||
{
|
||
return 'guest_comm.portal';
|
||
}
|
||
|
||
public static function version(): int
|
||
{
|
||
return 1;
|
||
}
|
||
|
||
public static function area(): TemplateArea
|
||
{
|
||
return TemplateArea::GuestCommunication;
|
||
}
|
||
|
||
public static function label(): string
|
||
{
|
||
return 'Gastkommunikation durch das Portal';
|
||
}
|
||
|
||
public static function purpose(): string
|
||
{
|
||
return 'Das Portal schreibt dem Gast zu Anreise und Bewertung. Wir halten fest, dass es angekündigt ist – eine Zustellung gilt damit nicht als nachgewiesen. Einzelne Anlässe lassen sich trotzdem von uns übernehmen.';
|
||
}
|
||
|
||
public static function modules(): array
|
||
{
|
||
return ['arrival.details', 'arrival.info'];
|
||
}
|
||
|
||
public static function configures(): array
|
||
{
|
||
return ['review.request'];
|
||
}
|
||
|
||
public static function responsibility(): Responsibility
|
||
{
|
||
return Responsibility::Portal;
|
||
}
|
||
|
||
public static function capabilityRequirements(): array
|
||
{
|
||
return ['messages_guest' => true];
|
||
}
|
||
|
||
public static function fixes(): array
|
||
{
|
||
return [];
|
||
}
|
||
|
||
public static function defaults(): array
|
||
{
|
||
return ['guest_messages' => 'portal', 'arrival_info_sender' => 'portal', 'review_request_sender' => 'portal'];
|
||
}
|
||
|
||
public static function dimensions(): array
|
||
{
|
||
return [
|
||
'Anreise-Information' => 'Durch das Portal (angekündigt, nicht nachgewiesen).',
|
||
'Bewertungsbitte' => 'Durch das Portal.',
|
||
'Medium' => 'Das des Portals.',
|
||
];
|
||
}
|
||
}
|