forked from Yara724/api
claim things fixed
This commit is contained in:
@@ -2429,24 +2429,20 @@ export class ExpertClaimService {
|
||||
await this.claimRequestManagementService.autoSubmitToFanavaranV2OnClaimCompleted(
|
||||
claimRequestId,
|
||||
);
|
||||
const fanavaranExpertise =
|
||||
await this.claimRequestManagementService.autoSubmitFanavaranExpertiseOnExpertReply(
|
||||
claimRequestId,
|
||||
);
|
||||
// Expertise (stage 4) is intentionally NOT submitted here.
|
||||
// It is only triggered after the owner's final approval signature
|
||||
// (submitOwnerInsurerApprovalSignV2), because until that point the
|
||||
// expert review is not considered final — the user can still object.
|
||||
return {
|
||||
message: this.appendFanavaranAutoSubmitToMessage(
|
||||
this.appendFanavaranAutoSubmitToMessage(
|
||||
"Factors were reviewed with expert repricing on rejected lines. The claim is completed without an owner signature (temporary policy; may require owner acceptance later).",
|
||||
fanavaran,
|
||||
),
|
||||
fanavaranExpertise,
|
||||
"Factors were reviewed with expert repricing on rejected lines. The claim is completed without an owner signature (temporary policy; may require owner acceptance later).",
|
||||
fanavaran,
|
||||
),
|
||||
claimRequestId,
|
||||
claimStatus: ClaimStatus.APPROVED,
|
||||
caseStatus: ClaimCaseStatus.COMPLETED,
|
||||
outcome: "REJECTED_REPRICED_AUTO_COMPLETED",
|
||||
fanavaran,
|
||||
fanavaranExpertise,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2463,25 +2459,21 @@ export class ExpertClaimService {
|
||||
await this.claimRequestManagementService.autoSubmitToFanavaranV2OnClaimCompleted(
|
||||
claimRequestId,
|
||||
);
|
||||
const fanavaranExpertise =
|
||||
await this.claimRequestManagementService.autoSubmitFanavaranExpertiseOnExpertReply(
|
||||
claimRequestId,
|
||||
);
|
||||
// Expertise (stage 4) is intentionally NOT submitted here.
|
||||
// It is only triggered after the owner's final approval signature
|
||||
// (submitOwnerInsurerApprovalSignV2), because until that point the
|
||||
// expert review is not considered final — the user can still object.
|
||||
|
||||
return {
|
||||
message: this.appendFanavaranAutoSubmitToMessage(
|
||||
this.appendFanavaranAutoSubmitToMessage(
|
||||
"All factors were approved by the expert. The claim is completed without an additional owner signature.",
|
||||
fanavaran,
|
||||
),
|
||||
fanavaranExpertise,
|
||||
"All factors were approved by the expert. The claim is completed without an additional owner signature.",
|
||||
fanavaran,
|
||||
),
|
||||
claimRequestId,
|
||||
claimStatus: ClaimStatus.APPROVED,
|
||||
caseStatus: ClaimCaseStatus.COMPLETED,
|
||||
outcome: "ALL_APPROVED_AUTO_COMPLETED",
|
||||
fanavaran,
|
||||
fanavaranExpertise,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user