CASH-3044: YMM bailout feature toggle

This commit is contained in:
credelinghuys 2026-07-14 09:16:16 -04:00
parent 84d1f7fe65
commit 47a6baa407
2 changed files with 11 additions and 1 deletions

View file

@ -58,6 +58,9 @@ const experimentSettings = {
TIER_ONE: "TierOne",
TIER_TWO: "TierTwo",
TIER_THREE: "TierThree",
// YMM
BAILOUT_VIN_REQUIRED_VEHICLES: "BailoutVINRequiredVehicles",
};
const experimentTriggers = {

View file

@ -6,6 +6,7 @@ import { saveSession } from "@/helpers/heritage-integration/order-helper.js";
import { experimentSettings } from "@/constants/experiments";
import { vinLookupMethodSelections } from "@/constants/vin-lookup-method-selections.js";
import { bailoutCodes } from "@/constants/bailout-codes";
import experimentMixin from "@/mixins/experiment-mixin.js";
export default {
computed: {
@ -37,7 +38,7 @@ export default {
pageNameToLog: pageName,
});
if (result.PartNotFound) {
if (result.PartNotFound || this.bailoutVinRequiredVehicles()) {
return bailoutMixin.methods.navigateToBailoutPage(
this,
bailoutCodes.PART_NOT_FOUND
@ -75,5 +76,11 @@ export default {
const phoneRegex = /^\(?(\d{3})\)?[-. ]?(\d{3})[-. ]?(\d{4})$/;
return phoneRegex.test(input);
},
bailoutVinRequiredVehicles() {
return experimentMixin.methods.hasSettingEqualTo(
experimentSettings.BAILOUT_VIN_REQUIRED_VEHICLES,
"true"
);
},
},
};