'Anzahlung überfällig – anmahnen', self::BalanceRequest => 'Restzahlung bald fällig – anfordern', self::BalanceReminder => 'Restzahlung überfällig – anmahnen', self::CancellationRequest => 'Stornierungswunsch des Gastes', self::CancellationFee => 'Stornokosten prüfen und abrechnen', self::PortalCancellation => 'Stornierung im Portal veranlassen bzw. prüfen', self::PortalCancellationReported => 'Das Portal meldet eine Stornierung – bitte prüfen', self::PortalChangeReported => 'Das Portal meldet eine Änderung – bitte prüfen', }; } public function isPayment(): bool { return ! in_array($this, [self::CancellationRequest, self::CancellationFee, self::PortalCancellation, self::PortalCancellationReported, self::PortalChangeReported], true); } /** * The mail kind (App\Mail\PaymentReminder) and the booking column that records its dispatch. * * @return array{0: string, 1: string}|null */ public function reminder(): ?array { return match ($this) { self::DepositReminder => [PaymentReminder::DEPOSIT_OVERDUE, 'deposit_reminded_at'], self::BalanceRequest => [PaymentReminder::BALANCE_REQUEST, 'balance_requested_at'], self::BalanceReminder => [PaymentReminder::BALANCE_OVERDUE, 'balance_reminded_at'], self::CancellationRequest, self::CancellationFee, self::PortalCancellation, self::PortalCancellationReported, self::PortalChangeReported => null, }; } }