From 94a7ce5f47048925727089a40a430883ff90e430 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Thu, 10 Oct 2024 14:49:12 -0400 Subject: [PATCH 1/4] CSR-2244 | Send isInsurance to promo endpoints --- src/store/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 65c1d64d4..d744175c9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -810,8 +810,11 @@ export const getters = { return false; }, shouldHideRecalibration: (state) => { - return (experimentMixin.methods.getSettingValue(experimentSettings.RECAL_PRICE_REMOVE) - ?.toLowerCase() === "true" && getters.isRecalibrationOnOrder); + return ( + experimentMixin.methods + .getSettingValue(experimentSettings.RECAL_PRICE_REMOVE) + ?.toLowerCase() === "true" && getters.isRecalibrationOnOrder + ); }, areRearWipersOnOrder: (state) => { return !!state.order.lineItems.vaps?.some( @@ -2622,6 +2625,7 @@ export const actions = { carId: order.vehicle.carId, correlationId: order.referralCorrelationId, eon: order.eon, + isInsurance: order.payment.isInsurance, isRepair: order.damage.isRepair, glassToReplace: renameGlassToReplaceAttributes(order.damage.glassToReplace), lineItemsOnOrder: getArrayOfAllLineItemsAndChildParts(lineItemsToUse), @@ -2694,6 +2698,7 @@ export const actions = { carId: order.vehicle.carId, correlationId: order.referralCorrelationId, eon: order.eon, + isInsurance: order.payment.isInsurance, isRepair: order.damage.isRepair, glassToReplace: renameGlassToReplaceAttributes(order.damage.glassToReplace), lineItemsOnOrder: getArrayOfAllLineItemsAndChildParts(lineItemsToUse), From 0f9697690f62465cf7a679ba0e73b397e36c2e95 Mon Sep 17 00:00:00 2001 From: Sneha Date: Fri, 11 Oct 2024 12:00:04 +0530 Subject: [PATCH 2/4] CSR-2201 Updating session sequence number --- src/global-methods.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/global-methods.js b/src/global-methods.js index 6afeef53d..22512fe41 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -6,6 +6,7 @@ import store from "@/store"; import { applicationConfig } from "@/constants/application-config.js"; import { GaCategories, GaActions, GaLabels } from "@/constants/analytics"; +import { getSessionKeyValue } from "@/helpers/heritage-integration/cookie-helper"; import { headerKeys } from "@/constants/header-keys"; import axiosResponseInterceptorMessages from "@/constants/axios-response-interceptor-messages.js"; @@ -65,7 +66,7 @@ export default { const headers = { [headerKeys.EXPERIMENT]: JSON.stringify(store.getters.experimentSettings), [headerKeys.APPLICATION_NAME]: applicationConfig.APPLICATION_NAME, - [headerKeys.SESSION_SEQUENCE_NUMBER]: store.getters.applicationUser?.savedSessionId, + [headerKeys.SESSION_SEQUENCE_NUMBER]: getSessionKeyValue(), [headerKeys.REFERRAL_SEQUENCE_NUMBER]: order?.referralSequenceNumber, [headerKeys.TRANSACTION_ID]: crypto.randomUUID(), [headerKeys.EON]: order?.eon, From c07bfd7e179f1ee4ef24ed71119792a9a8cf0739 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Fri, 11 Oct 2024 18:31:09 -0400 Subject: [PATCH 3/4] allow sys to return to localhost --- src/helpers/heritage-integration/navigation-helper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helpers/heritage-integration/navigation-helper.js b/src/helpers/heritage-integration/navigation-helper.js index 00687155b..e510959db 100644 --- a/src/helpers/heritage-integration/navigation-helper.js +++ b/src/helpers/heritage-integration/navigation-helper.js @@ -134,6 +134,8 @@ export async function navigateToHeritageFunnel({ shouldSaveSession, pageNameToLo } if ( + (process.env.VUE_APP_HERITAGE_FUNNEL.includes("fixmyglasstest") && + process.env.VUE_APP_CURRENT_ENVIRONMENT === "Localhost") || (process.env.VUE_APP_HERITAGE_FUNNEL.includes("fixmyglassdev") && process.env.VUE_APP_CURRENT_ENVIRONMENT === "Localhost") || (process.env.VUE_APP_HERITAGE_FUNNEL.includes("localhost") && From ae8788e98e52242bfe1e795c271c0964f1cec233 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Sat, 12 Oct 2024 20:29:45 -0400 Subject: [PATCH 4/4] CSR-2237 CSR-2237 typo in isNoComp field preventing tax from computing --- src/layouts/payment-method/payment-method.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 9f8cee9ec..194243d38 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -36,7 +36,7 @@ :showInsuranceCoverageAs="showInsuranceCoverageAs" :shouldHideRecalibration="shouldHideRecalibration" :isItac="isItac" - :isNocomp="isNocomp" /> + :isNoComp="isNoComp" />