Add migration to enhance session_payments table with payment_method_uuid and reference fields for split-payment details
This commit is contained in:
+2
-1
@@ -612,11 +612,12 @@ POST /api/v1/session/{uuid}/payments
|
||||
"patient_debt_rials": 0,
|
||||
"paid_at": 1770000000,
|
||||
"payments": [
|
||||
{ "uuid": "...", "method": "cash", "amount_rials": 200000, "paid_at": 1770000000, "created_by_name": "...", "created_at": 1770000000 }
|
||||
{ "uuid": "...", "method": "cash", "amount_rials": 200000, "payment_method_uuid": null, "reference": null, "paid_at": 1770000000, "created_by_name": "...", "created_at": 1770000000 }
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
> `payment_method_uuid` (uuid کارتخوان/حساب بانکیِ ثبتشده) و `reference` (شناسه تراکنش) از مسیرِ split-paymentِ «قطعی کردن نوبت» (`POST /api/v1/appointment/{uuid}/confirm`) پر میشوند؛ در پرداختِ تکروشیِ `POST /api/v1/session/{uuid}/payments` معمولاً `null` میمانند.
|
||||
|
||||
**Errors:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user