forked from Yara724/api
fix(claims): reuse saved Sheba across claim workflow steps
This commit is contained in:
@@ -241,8 +241,8 @@ Optional: upload car green card file in the same step.
|
||||
**Validations:**
|
||||
- Claim must exist
|
||||
- Current workflow step must be SELECT_OTHER_PARTS
|
||||
- Bank information must not have been submitted previously
|
||||
- Sheba (sheba) accepted as IR + 24 digits or only 24 digits
|
||||
- Previously saved bank information is reused when omitted
|
||||
- Sheba (sheba) accepted as IR + 24 digits or only 24 digits; required only if not saved
|
||||
- National code must be exactly 10 digits
|
||||
|
||||
**Valid Other Parts (Optional):**
|
||||
@@ -275,7 +275,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: {
|
||||
@@ -290,7 +290,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({
|
||||
@@ -305,7 +304,7 @@ Optional: upload car green card file in the same step.
|
||||
@ApiResponse({ status: 404, description: "Claim case not found" })
|
||||
@ApiResponse({
|
||||
status: 409,
|
||||
description: "Bank information already submitted",
|
||||
description: "Conflicting bank information",
|
||||
})
|
||||
async selectOtherParts(
|
||||
@Param("claimRequestId") claimRequestId: string,
|
||||
|
||||
Reference in New Issue
Block a user