fix(claims): reuse saved Sheba across claim workflow steps

This commit is contained in:
SepehrYahyaee
2026-11-21 16:36:34 +03:30
parent be364d94fe
commit 90f290154c
10 changed files with 412 additions and 54 deletions
@@ -241,7 +241,7 @@ Optional: upload car green card file in the same step.
)
@ApiBody({
description:
"Other parts + bank information. Use `sheba` and `nationalCodeOfInsurer`. Optional file can be uploaded as car green card.",
"Other parts + optional bank information. Saved Sheba and vehicle-owner identity are reused; supply missing fields only. Optional car green card file.",
schema: {
type: "object",
properties: {
@@ -256,7 +256,6 @@ Optional: upload car green card file in the same step.
nationalCodeOfInsurer: { type: "string", example: "1234567890" },
file: { type: "string", format: "binary" },
},
required: ["sheba", "nationalCodeOfInsurer"],
},
})
@ApiResponse({
@@ -266,7 +265,7 @@ Optional: upload car green card file in the same step.
})
@ApiResponse({ status: 400, description: "Invalid workflow step or validation failed" })
@ApiResponse({ status: 404, description: "Claim case not found" })
@ApiResponse({ status: 409, description: "Bank information already submitted" })
@ApiResponse({ status: 409, description: "Conflicting bank information" })
async selectOtherParts(
@Param("claimRequestId") claimRequestId: string,
@Body() body: SelectOtherPartsV2Dto,