forked from Yara724/api
Harden inquiry participant edge cases
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
"driver": {
|
||||
"nationalCode": "0012345678",
|
||||
"birthday": "1370/01/01",
|
||||
"hasDrivingLicense": true,
|
||||
"licenseNumber": "123456789",
|
||||
"licenseType": "1"
|
||||
},
|
||||
@@ -48,6 +49,8 @@
|
||||
|
||||
فیلد `carBodyPolicyholder` برای `THIRD_PARTY` مجاز نیست و برای `CAR_BODY` الزامی است. هر نقش باید فقط یکی از دو حالت «اطلاعات شخص» یا `sameAs` را داشته باشد. بکاند این ورودی را به فهرست اشخاص یکتا و اتصال نقشها به آنها تبدیل میکند.
|
||||
|
||||
فقط برای طرف زیاندیده در پرونده `THIRD_PARTY` میتوان نامشخص بودن بیمهگذار را بهصورت صریح با `"thirdPartyPolicyholder": { "unknown": true }` ارسال کرد. این حالت برای طرف مقصر پذیرفته نمیشود. در مسیر پلاک، استعلام بیمه شخص ثالث ــ چون به هویت بیمهگذار نیاز دارد ــ بهشکل قابلممیزی «عمداً اجرا نشد» ثبت میشود؛ استعلام مبتنی بر VIN همچنان بدون حدسزدن هویت قابل اجرا است. اعتبارسنجی راننده و مالک و استعلامهای هویت، مالکیت و گواهینامه همچنان انجام میشوند.
|
||||
|
||||
برای راننده، `hasDrivingLicense` الزامی است. اگر مقدار آن `true` باشد، هر دو فیلد `licenseNumber` و `licenseType` نیز الزامی هستند؛ اگر مقدار آن `false` باشد، استعلام گواهینامه عمداً اجرا نمیشود.
|
||||
|
||||
## انتقال مالکیت اخیر و پلاک قبلی
|
||||
|
||||
@@ -34,6 +34,7 @@ Use explicit role references instead:
|
||||
"driver": {
|
||||
"nationalCode": "0012345678",
|
||||
"birthday": "1370/01/01",
|
||||
"hasDrivingLicense": true,
|
||||
"licenseNumber": "123456789",
|
||||
"licenseType": "1"
|
||||
},
|
||||
@@ -48,6 +49,8 @@ Use explicit role references instead:
|
||||
|
||||
`carBodyPolicyholder` is forbidden for `THIRD_PARTY` and required for `CAR_BODY`. A role is either a new person's identity or a `sameAs` reference, never both. The backend should normalize this input into unique participants plus role assignments.
|
||||
|
||||
For the damaged party of a `THIRD_PARTY` case only, the policyholder can be explicitly unresolved with `"thirdPartyPolicyholder": { "unknown": true }`. This is not accepted for the guilty party. Plate-based third-party-policy inquiry is recorded as intentionally skipped because it requires that identity; VIN-based lookup can still run without guessing a person. The driver, owner, personal, ownership, and licence rules remain enforced.
|
||||
|
||||
For Driver, `hasDrivingLicense` is required. When it is `true`, both `licenseNumber` and `licenseType` are required; when it is `false`, the licence inquiry is intentionally skipped.
|
||||
|
||||
## Recent ownership transfer and previous plate
|
||||
|
||||
Reference in New Issue
Block a user