forked from Yara724/api
feat: complete in-person claims without final sign
This commit is contained in:
@@ -95,11 +95,16 @@ export function claimIsAwaitingExpertFactorValidationV2(claim: {
|
||||
);
|
||||
}
|
||||
|
||||
export function claimCaseStatusAfterExpertReplyV2(parts: ClaimPricingPartLite[]): ClaimCaseStatus {
|
||||
export function claimCaseStatusAfterExpertReplyV2(
|
||||
parts: ClaimPricingPartLite[],
|
||||
completeWithoutFinalOwnerSignature = false,
|
||||
): ClaimCaseStatus {
|
||||
const { mixedFactorAndPrice } = classifyV2ExpertPricingParts(parts);
|
||||
const needsFactorUpload = parts.some((p) => p.factorNeeded === true);
|
||||
if (!needsFactorUpload) {
|
||||
return ClaimCaseStatus.INSURER_REVIEW_AWAITING_OWNER_SIGN;
|
||||
return completeWithoutFinalOwnerSignature
|
||||
? ClaimCaseStatus.COMPLETED
|
||||
: ClaimCaseStatus.INSURER_REVIEW_AWAITING_OWNER_SIGN;
|
||||
}
|
||||
if (mixedFactorAndPrice) {
|
||||
return ClaimCaseStatus.INSURER_REVIEW_MIXED_FACTORS_PENDING;
|
||||
|
||||
Reference in New Issue
Block a user