forked from Yara724/api
documents of fanavaran with update
This commit is contained in:
@@ -11,7 +11,7 @@ source: fanavaran-module-docs
|
||||
1. `FANAVARAN_CLIENT=parsian` (or target tenant)
|
||||
2. Valid tenant credentials in Mongo / seed
|
||||
3. `INSURANCE_CORP_ID` matching that tenant’s insurance-corp Caption
|
||||
4. Network access to `apimanager.iraneit.com`
|
||||
4. Network access to the tenant host (`api.inssw.ir` for Moallem; `apimanager.iraneit.com` for Parsian / Tejaratno)
|
||||
5. Optional: warm lookups via first `GET /lookups/fanavaran/{name}` or auth script
|
||||
|
||||
## Auth smoke test
|
||||
@@ -52,6 +52,16 @@ Fill **section A** before the first run:
|
||||
|
||||
Lookup ids from Tejaratno/Parsian files are invalid for Moallem (Fanavaran returns `نوع خودرو یافت نشد` and similar). Fetch Moallem lookups first (`GET /lookups/vehicle-kinds` with `FANAVARAN_CLIENT=moallem`, or curl Fanavaran with that tenant’s token).
|
||||
|
||||
For Moallem V14, keep `FANAVARAN_API_VERSION=v14`. The script retains the V14 `AnnouncementDate` field and embeds a `DmgNotifications` item in the GEN.03 request. Fill `CLAIM_NOTIFICATION_DATE`, `NOTIFIER_TYPE_ID`, `NOTIFIER_RELATION_ID`, and `NOTIFIER_PARTY_ID` with Moallem values; the type and relation IDs must come from Moallem's own lookups. This is a live contract probe for Moallem's V14 endpoint. It does not call the V15-only GEN.30 endpoint.
|
||||
|
||||
### Browser UI for Moallem V14
|
||||
|
||||
Use the prepared Moallem env file as the UI server's working file:
|
||||
|
||||
FANAVARAN_FLOW_ENV=scripts/data/fanavaran-flow.moallem.env node scripts/fanavaran-flow-ui-server.js
|
||||
|
||||
Open http://127.0.0.1:17824, confirm the client is moallem and API version is v14, then refresh Moallem's tenant lookups. The notifier form is available for Moallem V14; enter the reporting party's national code and birth date, inquire the party, and select Moallem's notifier type and relation. Submitting GEN.03 sends the V14 body plus the embedded notifier.
|
||||
|
||||
### 2. Network / IP whitelist
|
||||
|
||||
Fanavaran Login is IP-restricted. From a **whitelisted server**, run with no proxy. From **localhost**, Termius dynamic port forwarding does **not** apply automatically — set:
|
||||
|
||||
Reference in New Issue
Block a user