Merge pull request #1108 from Safelite/feature/kroell/coverage-statement-bailout

Use new bailout when coverage canceled
This commit is contained in:
katiekroell 2026-02-23 16:46:25 -05:00 committed by GitHub
commit f96cfa4b5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,4 @@
// When adding a new bailout, the Digital Consumer Order Service must also be updated to map the new bailout code to the SV2BailoutCode
const bailoutCode = Object.freeze({ const bailoutCode = Object.freeze({
Unknown: 0, Unknown: 0,
SaveSessionError: 1, SaveSessionError: 1,
@ -15,7 +16,8 @@ const bailoutCode = Object.freeze({
VehicleYMMSLookupError: 13, VehicleYMMSLookupError: 13,
ApplicationError: 14, ApplicationError: 14,
ApiError: 15, ApiError: 15,
RouterError: 16 RouterError: 16,
CoverageCancelledByUser: 17
}); });
export default bailoutCode; export default bailoutCode;

View file

@ -93,7 +93,11 @@ const bailoutMessage = Object.freeze({
code: bailoutCode.VehicleYMMSLookupError, code: bailoutCode.VehicleYMMSLookupError,
message: getMessage(year, make, model, style) message: getMessage(year, make, model, style)
}; };
} },
CoverageCancelledByUser: () => ({
code: bailoutCode.CoverageCancelledByUser,
message: 'User canceled claim on ITAC/No Comp coverage statement.'
})
}); });
export default bailoutMessage; export default bailoutMessage;

View file

@ -462,7 +462,7 @@ export default {
}, },
cancelClaim() { cancelClaim() {
this.mainStore.updateIsSafeliteProvider(false); this.mainStore.updateIsSafeliteProvider(false);
this.$router.navigateBailout(bailoutMessage.RequestCallback()); this.$router.navigateBailout(bailoutMessage.CoverageCancelledByUser());
} }
} }
}; };