forked from Shared/esg
Compare commits
3
Commits
063e8827a4
...
b344333cba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b344333cba | ||
|
|
1c5ae77667 | ||
|
|
1ec9b3262d |
@@ -56,6 +56,9 @@ SHEBA_FALLBACK_PROVIDERS=
|
|||||||
CAR_PLATE_DEFAULT_PROVIDER=HAMTA
|
CAR_PLATE_DEFAULT_PROVIDER=HAMTA
|
||||||
CAR_PLATE_FALLBACK_ENABLED=true
|
CAR_PLATE_FALLBACK_ENABLED=true
|
||||||
CAR_PLATE_FALLBACK_PROVIDERS=
|
CAR_PLATE_FALLBACK_PROVIDERS=
|
||||||
|
CAR_BY_MOTOR_DEFAULT_PROVIDER=PARSIAN
|
||||||
|
CAR_BY_MOTOR_FALLBACK_ENABLED=false
|
||||||
|
CAR_BY_MOTOR_FALLBACK_PROVIDERS=
|
||||||
POLICY_BY_CHASSIS_DEFAULT_PROVIDER=PARSIAN
|
POLICY_BY_CHASSIS_DEFAULT_PROVIDER=PARSIAN
|
||||||
POLICY_BY_CHASSIS_FALLBACK_ENABLED=false
|
POLICY_BY_CHASSIS_FALLBACK_ENABLED=false
|
||||||
POLICY_BY_CHASSIS_FALLBACK_PROVIDERS=
|
POLICY_BY_CHASSIS_FALLBACK_PROVIDERS=
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ The dashboard includes a SUPER_ADMIN-only “clear inquiry logs” action. It is
|
|||||||
|
|
||||||
Each expanded inquiry log also shows the outbound provider calls made underneath the gateway (including retries, fallbacks, and authentication calls). The endpoint, HTTP status, response preview, and a copyable **safe cURL** are shown per call. XML request and response bodies have local formatted/raw, XML-to-JSON, and scoped search views for SOAP troubleshooting. Credentials and authorization tokens are redacted intentionally; replace the `<REDACTED>` placeholders before running a copied command manually.
|
Each expanded inquiry log also shows the outbound provider calls made underneath the gateway (including retries, fallbacks, and authentication calls). The endpoint, HTTP status, response preview, and a copyable **safe cURL** are shown per call. XML request and response bodies have local formatted/raw, XML-to-JSON, and scoped search views for SOAP troubleshooting. Credentials and authorization tokens are redacted intentionally; replace the `<REDACTED>` placeholders before running a copied command manually.
|
||||||
|
|
||||||
The **Batch input** panel accepts a JSON/TXT file or pasted JSON. It supports the `data` wrapper used by the current vehicle file, including fields such as `national_code`, `plaque_2`, `letter`, `plaque_3`, and `iran`. For Parsian third-party plate production traffic, `carByPlate` is the canonical one-factor route. `thirdPartyCar` and `policyByPlate` remain available for diagnostics/backward compatibility, but are not used by the sibling API integration. Every batch request uses the normal authenticated inquiry endpoint and creates its normal inquiry log. A delay can be configured to avoid overwhelming restricted provider services.
|
The **Batch input** panel accepts a JSON/TXT file or pasted JSON and supports the `data` wrapper used by the current vehicle file. It recognizes `national_code`, `plaque_2`, `letter`, `plaque_3`, `iran`, `vin`, and motor aliases such as `motorNo`, `motor_number`, and `engineNo` (plus the gateway camelCase aliases). Choose **By plate**, **By chassis / VIN**, **By motor number**, **Plate and chassis**, or **Plate, chassis, and motor**. In a combined plate + VIN run, coverage is calculated per input record: either lookup succeeding counts as answered, both returning no-match counts as no-answer, and operational/validation failures remain inconclusive. No-answer records are visually highlighted, can be filtered, and expose a **Test motor** follow-up without changing the original plate + VIN coverage figure. Each response still has its own expandable logs, outbound traces, and cURLs. Every batch request uses the normal authenticated endpoint and creates its normal inquiry log.
|
||||||
|
|
||||||
## Authentication & users
|
## Authentication & users
|
||||||
|
|
||||||
@@ -157,6 +157,9 @@ See [Environment Configuration Guide](docs/ENVIRONMENT_CONFIGURATION.md) for com
|
|||||||
| `CIVIL_REGISTRATION_INQUIRY` | MOALLEM | Civil registration data |
|
| `CIVIL_REGISTRATION_INQUIRY` | MOALLEM | Civil registration data |
|
||||||
| `SHEBA_INQUIRY` | PARSIAN, HAMTA, MOALLEM | Bank account (SHEBA) validation |
|
| `SHEBA_INQUIRY` | PARSIAN, HAMTA, MOALLEM | Bank account (SHEBA) validation |
|
||||||
| `SAYAH_INQUIRY` | TEJARATNOU | Sayah system inquiry |
|
| `SAYAH_INQUIRY` | TEJARATNOU | Sayah system inquiry |
|
||||||
|
| `CAR_BY_PLATE_INQUIRY` | PARSIAN | Car policy lookup by plate with national-code ownership validation |
|
||||||
|
| `CAR_BY_CHASSIS_INQUIRY` | PARSIAN | Car policy lookup by VIN/chassis with national-code ownership validation |
|
||||||
|
| `CAR_BY_MOTOR_INQUIRY` | PARSIAN | Car policy lookup by motor number with national-code ownership validation |
|
||||||
| `POLICY_BY_CHASSIS_INQUIRY` | PARSIAN | Car policy history by chassis number |
|
| `POLICY_BY_CHASSIS_INQUIRY` | PARSIAN | Car policy history by chassis number |
|
||||||
| `POLICY_BY_PLATE_INQUIRY` | PARSIAN | Car policy history by national plate |
|
| `POLICY_BY_PLATE_INQUIRY` | PARSIAN | Car policy history by national plate |
|
||||||
| `POLICY_BY_NATIONAL_CODE_INQUIRY` | PARSIAN | Car policy history by national code |
|
| `POLICY_BY_NATIONAL_CODE_INQUIRY` | PARSIAN | Car policy history by national code |
|
||||||
|
|||||||
@@ -405,6 +405,23 @@ curl -X POST https://api.example.com/api/inquiry/sheba \
|
|||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Car Insurance By Motor Number
|
||||||
|
|
||||||
|
### Endpoint
|
||||||
|
```
|
||||||
|
POST /api/inquiry/carByMotor
|
||||||
|
```
|
||||||
|
|
||||||
|
The Parsian provider calls the `CIIWSPolicyMotor` SOAP operation and only returns the policy when its owner national code matches the request.
|
||||||
|
|
||||||
|
### Request Body
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"nationalCode": "0123456789",
|
||||||
|
"motorNo": "147H0403219"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Car Policy By Chassis
|
## Car Policy By Chassis
|
||||||
|
|
||||||
### Endpoint
|
### Endpoint
|
||||||
|
|||||||
@@ -220,6 +220,11 @@ PARSIAN_SHEBA_USERNAME=parsian.sayah
|
|||||||
PARSIAN_SHEBA_PASSWORD=your-password
|
PARSIAN_SHEBA_PASSWORD=your-password
|
||||||
PARSIAN_SHEBA_AUTH_METHOD=AMITIS
|
PARSIAN_SHEBA_AUTH_METHOD=AMITIS
|
||||||
|
|
||||||
|
# Car-by-motor routing (reuses the configured Parsian car-policy SOAP URL and credentials)
|
||||||
|
CAR_BY_MOTOR_DEFAULT_PROVIDER=PARSIAN
|
||||||
|
CAR_BY_MOTOR_FALLBACK_ENABLED=false
|
||||||
|
CAR_BY_MOTOR_FALLBACK_PROVIDERS=
|
||||||
|
|
||||||
# Car policy inquiry by chassis (SOAP auth)
|
# Car policy inquiry by chassis (SOAP auth)
|
||||||
PARSIAN_POLICY_BY_CHASSIS_URL=http://reinsure.centinsur.ir/CarAllPlcysV4
|
PARSIAN_POLICY_BY_CHASSIS_URL=http://reinsure.centinsur.ir/CarAllPlcysV4
|
||||||
PARSIAN_POLICY_BY_CHASSIS_USERNAME=pa6476
|
PARSIAN_POLICY_BY_CHASSIS_USERNAME=pa6476
|
||||||
|
|||||||
Reference in New Issue
Block a user