forked from Yara724/api
fix(inquiries): route all tenants through ESG and Fanavaran
This commit is contained in:
@@ -428,7 +428,7 @@ export class RequestManagementService {
|
||||
currentPlate: submission.vehicle?.currentPlate ?? submission.dto.plate,
|
||||
vin: submission.vehicle?.vin,
|
||||
query: (plate) =>
|
||||
this.sandHubService.getTejaratBlockInquiry(
|
||||
this.sandHubService.getCarByPlateInquiry(
|
||||
{
|
||||
plate: plate as any,
|
||||
nationalCodeOfInsurer: subjects.thirdPartyPolicyNationalCode,
|
||||
@@ -2302,7 +2302,7 @@ export class RequestManagementService {
|
||||
* 2. Personal identity inquiry (same as the plate path)
|
||||
*
|
||||
* The inquiry result is mapped through the same `mapEsgPolicyByPlateToOldFormat`
|
||||
* normaliser used by `getTejaratBlockInquiry`, so all downstream party/vehicle
|
||||
* normaliser used by `getCarByPlateInquiry`, so all downstream party/vehicle
|
||||
* /insurance field assignments are identical.
|
||||
*/
|
||||
async initialFormVinV2(
|
||||
@@ -7608,7 +7608,7 @@ export class RequestManagementService {
|
||||
/**
|
||||
* VIN variant of `runInquiriesV3`.
|
||||
* Identical flow, but calls the two-factor `getCarByChassisInquiry` instead of
|
||||
* `getTejaratBlockInquiry` for the primary policy lookup.
|
||||
* `getCarByPlateInquiry` for the primary policy lookup.
|
||||
*/
|
||||
async runInquiriesVinV3(
|
||||
requestId: string,
|
||||
@@ -7751,7 +7751,7 @@ export class RequestManagementService {
|
||||
/**
|
||||
* VIN variant of `runPartyInquiriesV3Internal`.
|
||||
* Calls `getCarByChassisInquiry` (ESG two-factor chassis lookup) instead of
|
||||
* `getTejaratBlockInquiry` (plate-based). All other inquiries (personal,
|
||||
* `getCarByPlateInquiry` (plate-based). All other inquiries (personal,
|
||||
* driving licence, car-body for CAR_BODY) are unchanged.
|
||||
*/
|
||||
private async runPartyInquiriesVinV3Internal(
|
||||
|
||||
Reference in New Issue
Block a user