- Offer workflow: "Angebot senden" in the admin (dates, guests, promo code, manual price adjustment, validity from the property's hold time, message, guest data for the contract) with live price; contract draft PDF; signed, versioned offer page for the guest to accept (acceptance record without IP) or decline; expiry job, landlord notifications, editable offer texts, wording on the website. - 2FA is mandatory for every admin account. - Privacy: complete anonymisation (notes, attribution, review names, offer messages), shorter periods for unbinding requests, portal mail excerpts and attribution (configurable proposals), iCal summary not stored, known e-mail no longer overwrites guest data, security headers, bearer tokens for automations, metadata stripped from photo originals, review link throttled. - Daily database backup (backup:database) and scripts/backup-pull.sh for the NAS. - Theme: brand mark in header/footer, favicon/touch icon, wave divider, icons, illustration as image placeholder; navy follows the text colour for dark appearances. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
988 B
PHP
32 lines
988 B
PHP
<?php
|
||
|
||
namespace App\Exceptions;
|
||
|
||
use RuntimeException;
|
||
|
||
/**
|
||
* A reservation or status change that is not possible. Messages are shown to guests and administrators.
|
||
*/
|
||
class ReservationException extends RuntimeException
|
||
{
|
||
public static function notAvailable(): self
|
||
{
|
||
return new self('Der gewünschte Zeitraum ist leider nicht mehr frei.');
|
||
}
|
||
|
||
public static function offerExpired(): self
|
||
{
|
||
return new self('Dieses Angebot ist nicht mehr gültig. Bitte melden Sie sich bei uns – gern erstellen wir Ihnen ein neues Angebot.');
|
||
}
|
||
|
||
public static function offerOutdated(): self
|
||
{
|
||
return new self('Zu dieser Anfrage gibt es inzwischen ein aktualisiertes Angebot. Bitte verwenden Sie den Link aus unserer neuesten E-Mail.');
|
||
}
|
||
|
||
public static function invalidTransition(string $statusLabel, string $action): self
|
||
{
|
||
return new self("Eine Buchung im Status „{$statusLabel}“ kann nicht {$action} werden.");
|
||
}
|
||
}
|