forked from Yara724/api
Added extra fanavaran fields
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
Snapshot of **what hull submit actually sends** after `toFanavaranHullBaseClaimPayload` / `toFanavaranHullExpertisePayload`.
|
||||
|
||||
Experts can now review address, city, report type, accident/culprit/authority IDs, fault percentage, repair duration and vehicle value before their sending stage. See [expert field review](../fanavaran-stage-field-review.md); defaults below remain fallbacks for unreviewed records.
|
||||
|
||||
Staged flow (VHUD):
|
||||
|
||||
1. Base: `POST /car/vehicle-hull-claims` (GEN.03)
|
||||
@@ -35,15 +37,15 @@ Built by `buildFanavaranSubmitPayload` then `enrichCarBodyHullBaseClaimPayload`
|
||||
| AccidentDate | تاریخ حادثه | string Jalali | **no** | **user** first-party `statement.accidentDate`, else createdAt |
|
||||
| AccidentTime | ساعت حادثه | string `HH:mm` | **no** | **user** `statement.accidentTime` if set |
|
||||
| AnnouncementDate | تاریخ اعلام | string Jalali | **no** | **derived** = AccidentDate |
|
||||
| AccidentLocationAddress | نشانی محل حادثه | string | **no** | **system** `"استان تهران شهر تهران"` |
|
||||
| AccidentLocationAddress | نشانی محل حادثه | string | **no** | **user** expert review, else **system** `"استان تهران شهر تهران"` |
|
||||
| AccidentCauseId | علت حادثه | number | **no** | **system** `6` · lookup `accident-causes` |
|
||||
| AccidentCityId | شهر حادثه | number | **no** | **system** `701` · lookup `cities` |
|
||||
| AccidentReportTypeId | نحوه اعلام | number | **no** | **system** `155` · lookup `accident-report-type` |
|
||||
| AccidentTypeId | نوع حادثه بدنه | number | **no** | **system** `2` تصادف(حادثه) · **lookup** `GET /lookups/vehicle-hull-accident-types` |
|
||||
| CulpritTypeId | نوع مقصر بدنه | number | **no** | **system** `300` (ثالث `337` remapped) · **lookup** `GET /lookups/vehicle-hull-accident-culprit-type` |
|
||||
| AuthorityCulpritId | مرجع تعیین مقصر | number | **no** | **lookup** `GET /lookups/detection-accident-culprits` (caption بیمهگذار, fallback `1`) |
|
||||
| AccidentCityId | شهر حادثه | number | **no** | **user** expert review, else **system** `701` · lookup `cities` |
|
||||
| AccidentReportTypeId | نحوه اعلام | number | **no** | **user** expert review, else **system** `155` · lookup `accident-report-type` |
|
||||
| AccidentTypeId | نوع حادثه بدنه | number | **no** | **user** expert review, else **system** `2` تصادف(حادثه) · **lookup** `GET /lookups/vehicle-hull-accident-types` |
|
||||
| CulpritTypeId | نوع مقصر بدنه | number | **no** | **user** expert review, else **system** `300` (ثالث `337` remapped) · **lookup** `GET /lookups/vehicle-hull-accident-culprit-type` |
|
||||
| AuthorityCulpritId | مرجع تعیین مقصر | number | **no** | **user** expert review, else **lookup** `GET /lookups/detection-accident-culprits` (caption بیمهگذار, fallback `1`) |
|
||||
| AccidentCulpritId | شناسه مقصر فناوران | number | preferred | **inquiry** parties `inquiry-by-unique-identifier`, fallback hull policy `CustomerId` |
|
||||
| CustomerFaultPercent | درصد تقصیر بیمهگذار | number | **no** | **system** `100` |
|
||||
| CustomerFaultPercent | درصد تقصیر بیمهگذار | number | **no** | **user** expert review, else **system** `100` |
|
||||
| CostSeparationToDmgSections | تفکیک هزینه به نقاط | number (ans) | **no** | **system** `0` خیر · lookup `ans` |
|
||||
| IsOwnerChanged | مالک تغییر یافته؟ | number (ans) | **no** | **system** `0` · lookup `ans` |
|
||||
| IsLicenseReplaced | گواهینامه تعویضی است؟ | number | **must be null** | never copy ثالث `IsLicenseReplacement` |
|
||||
@@ -119,8 +121,8 @@ Not ثالث GEN.08: no `DmgCaseId`, `InspectionPlaceId`, `RepairWage` on the ro
|
||||
| Wage | اجرت کل | number | **no** | **user** sum `salary` |
|
||||
| ComponentReplacementCost | قطعه کل | number | **no** | **user** sum `price` |
|
||||
| WasteValue | داغی کل | number | **no** | **user** daghi |
|
||||
| RepairDuration | مدت تعمیر (روز) | number | **no** | **system** `3` |
|
||||
| VehicleCurrentValue | ارزش روز خودرو | number | preferred | **user** `vehicle.carPrice` / `vehicle.price`, else **inquiry** policy `VehicleValue` |
|
||||
| RepairDuration | مدت تعمیر (روز) | number | **no** | **user** expert review, else **system** `3` |
|
||||
| VehicleCurrentValue | ارزش روز خودرو | number | preferred | **user** expert field review (rials), else `vehicle.carPrice` / `vehicle.price`, else **inquiry** policy `VehicleValue` |
|
||||
| DropAmount | افت قیمت | number | **no** | **user** price-drop total or `0` |
|
||||
| CarryAndRescueCost | حمل و نجات | number | yes | null |
|
||||
| WreckHighestValue | بالاترین ارزش لاشه | number | yes | null |
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
Snapshot of **what `ClaimRequestManagementService` actually sends** for `THIRD_PARTY` as of this version.
|
||||
|
||||
Experts can now override address, city, report type, damage history and inspection place before their sending stage. See [expert field review](../fanavaran-stage-field-review.md); defaults below remain fallbacks for unreviewed records.
|
||||
|
||||
- Base: `POST /car/third-party-car-financial-claims` (GEN.03)
|
||||
- Damage case: `POST …/{claimId}/dmg-cases` (GEN.12)
|
||||
- Attachments: `POST …/{claimId}/files` (GEN.07, multipart)
|
||||
@@ -38,10 +40,10 @@ Parsian tenant defaults used below: `ClaimExpertId=154`, `ExpertiseClaimExpertId
|
||||
| AnnouncementDate | تاریخ اعلام | string Jalali | **no** | **derived** = AccidentDate | |
|
||||
| DocReceivedDate | تاریخ وصول مدارک | string Jalali | **no** | **derived** = AccidentDate | Third-party only (not on hull whitelist) |
|
||||
| AccidentTime | ساعت حادثه | string `HH:mm` | **no** | **user** / **derived** from createdAt | |
|
||||
| AccidentLocationAddress | نشانی محل حادثه | string | **no** | **system** `"استان تهران شهر تهران"` | Should later be **user** |
|
||||
| AccidentLocationAddress | نشانی محل حادثه | string | **no** | **user** expert review, else **system** `"استان تهران شهر تهران"` | |
|
||||
| AccidentCauseId | علت حادثه | number | **no** | **system** `6` | Lookup: `GET /lookups/accident-causes`. Expert `accidentReason.fanavaran` exists but is not yet wired as the sent id |
|
||||
| AccidentCityId | شهر محل حادثه | number | **no** | **system** `701` تهران | Lookup: `GET /lookups/cities` |
|
||||
| AccidentReportTypeId | نحوه اعلام حادثه | number | **no** | **system** `155` | Lookup: `GET /lookups/accident-report-type` |
|
||||
| AccidentCityId | شهر محل حادثه | number | **no** | **user** expert review, else **system** `701` تهران | Lookup: `GET /lookups/cities` |
|
||||
| AccidentReportTypeId | نحوه اعلام حادثه | number | **no** | **user** expert review, else **system** `155` | Lookup: `GET /lookups/accident-report-type` |
|
||||
| AccidentVehicleUsedId | نوع کاربری خودرو | number | **no** | **inquiry** VIN / policy vehicle `UsedId`, else tenant `1` | Lookup: `GET /lookups/vehicle-use-types` |
|
||||
| CulpritTypeId | نوع مقصر | number | **no** | **system** `337` | Lookup: `GET /lookups/accident-culprit-type` (ثالث, not hull) |
|
||||
| CulpritLicenceTypeId | نوع گواهینامه مقصر | number | **no** | **system** `2` | Lookup: `GET /lookups/driving-licence-types` |
|
||||
@@ -127,7 +129,7 @@ If `DriverId` is missing, **submit** (not preview) registers GEN.44 `POST /commo
|
||||
| PreviousPolicyEndDate | پایان بیمهنامه قبلی | string | empty ok | **derived** from EndDate |
|
||||
| InsuranceCorpId | شرکت بیمه زیاندیده | number | **no** | **lookup** insurance-corp for tenant |
|
||||
| DmgCaseTypeId | نوع مورد خسارت | number | **no** | **system** `175` · lookup `dmg-case-type` |
|
||||
| DmgHistoryStatus | وضعیت سابقه خسارت | number | **no** | **system** `5214` · lookup `dmg-history-status` |
|
||||
| DmgHistoryStatus | وضعیت سابقه خسارت | number | **no** | **user** expert review, else **system** `5214` · lookup `dmg-history-status` |
|
||||
| FaultPercent | درصد تقصیر | number | **no** | **system** `100` |
|
||||
| DriverIsOwner | راننده همان مالک؟ | number | **no** | **user** `driverIsInsurer` → 1/0 |
|
||||
| LicenceNo | شماره گواهینامه زیاندیده | string | **no** | **user**, else dummy |
|
||||
@@ -169,7 +171,7 @@ Requires local `dmgCaseId`. `ClaimExpertId` here is the **assessor** role (Parsi
|
||||
| ClaimExpertId | کارشناس ارزیاب | number | **no** | **staff** / tenant `ExpertiseClaimExpertId` |
|
||||
| DmgAssessmentDate | تاریخ بازدید | string Jalali | **no** | **derived** expert reply `submittedAt` |
|
||||
| InspectionTime | ساعت بازدید | string `HH:mm` | **no** | **derived** |
|
||||
| InspectionPlaceId | محل بازدید | number | **no** | **system** `282` · lookup `GET /lookups/inspection-place` |
|
||||
| InspectionPlaceId | محل بازدید | number | **no** | **user** expert review, else **system** `282` · lookup `GET /lookups/inspection-place` |
|
||||
| RepairWage | اجرت کل | number | **no** | **user** sum of part `salary` |
|
||||
| ComponentReplacementCost | قطعه کل | number | **no** | **user** sum of part `price` |
|
||||
| WasteValue | داغی کل | number | **no** | **user** daghi prices |
|
||||
|
||||
Reference in New Issue
Block a user