feat(sms): add doctor appointment notification SMS for paid appointments

This commit is contained in:
hamed
2026-07-02 21:11:17 +03:30
parent 10be1728ff
commit 1804b4215d
5 changed files with 162 additions and 1 deletions
+11
View File
@@ -321,6 +321,17 @@ final class PaymentManager
]);
$this->smsService->dispatchAsync($mobile, $message, tag: SmsLog::TAG_PAYMENT);
}
// اعلان به شمارهٔ «اعلان نوبت» دکتر — فقط برای نوبت‌های پرداخت‌شدهٔ سایت (همین مسیر).
$notify = $doctor->getNotificationMobile();
if ($notify) {
$docMessage = $this->smsText->resolve(SmsLog::TAG_DOCTOR_APPOINTMENT, [
'patient' => $appointment->getPatientName() ?? '—',
'date' => $this->jalali->formatDateTime($appointment->getSlotStart(), false),
'time' => date('H:i', $appointment->getSlotStart()),
]);
$this->smsService->dispatchAsync($notify, $docMessage, tag: SmsLog::TAG_DOCTOR_APPOINTMENT);
}
}
private function handleSubscriptionActivation(Payment $payment): void