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:
@@ -570,6 +570,11 @@ The sum of `payments` may not exceed the visit's payable amount → `ERR_SESSION
|
||||
Partial payment is normal: the remainder stays as `remaining_rials` on the visit and can be
|
||||
collected later through `POST /api/v1/session/{uuid}/payments`.
|
||||
|
||||
> **نوبت آنلاین با پرداخت موفق، خودبهخود قطعی نمیشود.** پرداخت فقط پنجرهٔ انقضای درگاه
|
||||
> را برمیدارد (`expires_at = null`) و نوبت در وضعیت `pending` («ثبت شده») میماند تا پزشک/منشی
|
||||
> از همین اندپوینت آن را قطعی کند. ساخت پرونده/مراجعه و تقسیم مالی (پورسانت نماینده و سهم منشی)
|
||||
> هم در همین لحظهٔ تأیید انجام میشود، نه لحظهٔ پرداخت.
|
||||
|
||||
### What happens on the server
|
||||
1. انتخاب بیمه (اگر در بدنه آمده باشد) روی نوبت مینشیند و اعتبارسنجی میشود.
|
||||
2. `pending → confirmed` (state machine still applies).
|
||||
|
||||
Reference in New Issue
Block a user