forked from Yara724/api
fanavaran parsian done
This commit is contained in:
@@ -1029,4 +1029,44 @@ Returns status of each item (uploaded/captured or not).
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Get("fanavaran-submit/parsian/:claimCaseId")
|
||||
@ApiOperation({
|
||||
summary: "Preview Fanavaran submit body (Parsian / V2)",
|
||||
description:
|
||||
"Builds the third-party-car-financial-claims payload from claimCases + blameCases without calling Fanavaran.",
|
||||
})
|
||||
@ApiParam({
|
||||
name: "claimCaseId",
|
||||
description: "The claim case ID (MongoDB ObjectId)",
|
||||
})
|
||||
async fanavaranSubmitParsianV2(
|
||||
@Param("claimCaseId") claimCaseId: string,
|
||||
@Query("debug") debug?: string,
|
||||
) {
|
||||
return await this.claimRequestManagementService.fanavaranSubmitParsianV2(
|
||||
claimCaseId,
|
||||
{
|
||||
debug: debug === "1" || debug === "true",
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@Post("fanavaran-submit/parsian/:claimCaseId")
|
||||
@ApiOperation({
|
||||
summary: "Submit claim to Fanavaran (Parsian / V2)",
|
||||
description:
|
||||
"Authenticates with Parsian Fanavaran credentials and submits the mapped claimCases + blameCases payload.",
|
||||
})
|
||||
@ApiParam({
|
||||
name: "claimCaseId",
|
||||
description: "The claim case ID (MongoDB ObjectId)",
|
||||
})
|
||||
async submitToFanavaranParsianV2(
|
||||
@Param("claimCaseId") claimCaseId: string,
|
||||
) {
|
||||
return await this.claimRequestManagementService.submitToFanavaranParsianV2(
|
||||
claimCaseId,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user