feat: add mobile number change functionality for doctors and clinics
- Implemented PATCH endpoints for changing the login mobile number of doctors and clinics. - Added ChangeLoginMobileModal component for handling mobile number updates in the UI. - Updated ClinicsPage and DoctorsPage to include buttons for changing mobile numbers. - Enhanced AdminApiController to manage mobile number changes with validation. - Created tests to ensure proper functionality and validation for mobile number changes. - Updated API documentation to reflect new endpoints and their usage.
This commit is contained in:
@@ -314,6 +314,18 @@ class Appointment
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* پرداخت موفق: نگهداشتِ موقتِ درگاه برداشته میشود ولی نوبت «ثبتشده» میماند تا
|
||||
* پزشک/منشی آن را قطعی کند. بدون این، همان قواعد انقضا (پنجرهٔ پرداخت یا گذشتنِ
|
||||
* ساعت نوبت) نوبتِ پرداختشده را هم منقضی میکردند.
|
||||
*/
|
||||
public function clearPaymentWindow(): self
|
||||
{
|
||||
$this->expiresAt = null;
|
||||
$this->updatedAt = time();
|
||||
return $this;
|
||||
}
|
||||
|
||||
/** آیا پنجرهٔ ۱۵ دقیقهایِ پرداخت گذشته یا زمان اسلات رد شده است؟ */
|
||||
public function isPaymentWindowExpired(int $now): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user