1
0
forked from Yara724/api
This commit is contained in:
SepehrYahyaee
2026-05-18 09:29:41 +03:30
parent 600c6bd7ed
commit f0ba8949cb
2 changed files with 25 additions and 0 deletions

View File

@@ -71,6 +71,22 @@ export class ExpertClaimV2Controller {
return this.claimRequestManagementService.getOuterPartsCatalogV2(carType);
}
@Get("branches")
@ApiOperation({
summary: "List insurer branches for this damage expert (V2)",
description:
"Returns branches for the insurance company bound to the expert JWT (`clientKey`). " +
"Same payload as v1 `GET expert-claim/branches/:insuranceId` — no client id in the URL.",
})
@ApiResponse({
status: 200,
description:
"Branch list (name, code, address, city, state, phoneNumber, isActive, …) for daghi / branch selection in expert replies",
})
async getInsuranceBranchesV2(@CurrentUser() actor: { clientKey?: string }) {
return await this.expertClaimService.retrieveInsuranceBranchesV2(actor);
}
@Get("requests")
@ApiOperation({
summary: "List available claim requests for damage expert",