forked from Yara724/api
fix(claims): reuse saved Sheba across claim workflow steps
This commit is contained in:
@@ -621,8 +621,8 @@ Optional: upload car green card file in the same step.
|
||||
- Claim must exist
|
||||
- User must be the claim owner (damaged party from blame case)
|
||||
- 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):**
|
||||
@@ -656,7 +656,7 @@ Optional: upload car green card file in the same step.
|
||||
)
|
||||
@ApiBody({
|
||||
description:
|
||||
"Other parts + bank information. Use `sheba` and `nationalCodeOfInsurer` like THIRD_PARTY flow. 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: {
|
||||
@@ -671,7 +671,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({
|
||||
@@ -693,7 +692,7 @@ Optional: upload car green card file in the same step.
|
||||
})
|
||||
@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