forked from Yara724/api
Added vin inquiry for v6, fixed new damaged part for v4
This commit is contained in:
@@ -20,7 +20,10 @@ import { Roles } from "src/decorators/roles.decorator";
|
||||
import { CurrentUser } from "src/decorators/user.decorator";
|
||||
import { RoleEnum } from "src/Types&Enums/role.enum";
|
||||
import { RequestManagementService } from "./request-management.service";
|
||||
import { RunCallCenterInquiryV6Dto } from "./dto/run-call-center-inquiry-v6.dto";
|
||||
import {
|
||||
RunCallCenterInquiryV6Dto,
|
||||
RunCallCenterInquiryVinV6Dto,
|
||||
} from "./dto/run-call-center-inquiry-v6.dto";
|
||||
|
||||
/**
|
||||
* V6 call-center blame API.
|
||||
@@ -105,6 +108,27 @@ export class CallCenterBlameV6Controller {
|
||||
return this.requestManagementService.runCallCenterInquiryV6(agent, requestId, dto);
|
||||
}
|
||||
|
||||
@Post("run-inquiry-vin/:requestId")
|
||||
@ApiOperation({
|
||||
summary: "[V6] Run VIN/chassis inquiry for the guilty party",
|
||||
description:
|
||||
"VIN alternative to `run-inquiry`. " +
|
||||
"The agent supplies the chassis number and personal data collected from the caller. " +
|
||||
"ESG chassis lookup (`policyByChassis`) is executed and the result is stored on the " +
|
||||
"blame document under `vehicle.vin` (plateId is left empty). " +
|
||||
"Identical eligibility guards and insurer-company validation as the plate variant. " +
|
||||
"After this call, proceed to `send-link` exactly as in the plate flow.",
|
||||
})
|
||||
@ApiParam({ name: "requestId", description: "Blame request ID from `create`" })
|
||||
@ApiBody({ type: RunCallCenterInquiryVinV6Dto })
|
||||
runInquiryVin(
|
||||
@CurrentUser() agent: any,
|
||||
@Param("requestId") requestId: string,
|
||||
@Body() dto: RunCallCenterInquiryVinV6Dto,
|
||||
) {
|
||||
return this.requestManagementService.runCallCenterInquiryVinV6(agent, requestId, dto);
|
||||
}
|
||||
|
||||
@Post("send-link/:requestId")
|
||||
@ApiOperation({
|
||||
summary: "[V6] Send blame link to the guilty party via SMS",
|
||||
|
||||
Reference in New Issue
Block a user