From 2a5b241bda86cf0292684d7c817795a48314aa57 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Wed, 31 May 2023 09:58:34 -0400 Subject: [PATCH 1/3] CSR-1137 | Update application name being sent to time slot endpoints --- src/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 270203f89..b7f51f4cb 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1156,7 +1156,7 @@ export const actions = { startDate: startDate, endDate: endDate, shopAppointmentType: shopAppointmentType, - applicationName: "Safelite.com funnel", + applicationName: applicationConfig.APPLICATION_NAME, parentAccountNumber: context.getters.payment.parentAccountNumber, carId: vehicle.carId, partNumbers: partNumbers, @@ -1208,7 +1208,7 @@ export const actions = { var payload = { startDate: startDate, endDate: endDate, - applicationName: "Safelite.com funnel", + applicationName: applicationConfig.APPLICATION_NAME, parentAccountNumber: context.getters.payment.parentAccountNumber, carId: vehicle.carId, partNumbers: partNumbers, From 752de5f0eb3a53d97752429a0759e4e749536318 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Wed, 31 May 2023 10:03:08 -0400 Subject: [PATCH 2/3] CSR-1137 | Changing 'early bird' endpoint to 'premium' --- src/constants/endpoints.js | 4 ++-- src/constants/store-actions.js | 2 +- src/layouts/schedule/schedule.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 53f981d8a..05a55cc5c 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -114,8 +114,8 @@ const endpoints = { url: "/schedule/api/v1/schedule/mobile-time-slots", method: "POST", }, - GetMobileEarlyBirdFee: { - url: "/parts/api/v1/parts/mobile-early-bird-fee", + GetMobilePremiumFee: { + url: "/parts/api/v1/parts/mobile-premium-fee", method: "GET", }, SaveSession: { diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js index 5ff98fd9d..c44a6fe85 100644 --- a/src/constants/store-actions.js +++ b/src/constants/store-actions.js @@ -35,7 +35,7 @@ const storeActions = { GET_SHOP_TIME_SLOTS: "getShopTimeSlots", GET_MOBILE_TIME_SLOTS: "getMobileTimeSlots", GET_PROVIDERS: "getProviders", - GET_MOBILE_EARLY_BIRD_FEE: "getMobileEarlyBirdFee", + GET_MOBILE_PREMIUM_FEE: "getMobilePremiumFee", SAVE_SESSION: "saveSession", LOAD_SESSION: "loadSession", UPDATE_STORE_WITH_SAVE_SESSION_RESPONSE: "updateStoreWithSaveSessionResponse", diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index ae2c4042c..3a4290cb9 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -28,7 +28,7 @@ Date: Wed, 31 May 2023 10:06:20 -0400 Subject: [PATCH 3/3] CSR-1137 | Change index.js to get-mobile-premium-fee --- src/store/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index b7f51f4cb..ee7ea4911 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1243,13 +1243,13 @@ export const actions = { }); }, - getMobileEarlyBirdFee(context) { + getMobilePremiumFee(context) { const damageType = context.getters.damage.isRepair ? "Repair" : "Replace"; const paymentType = context.getters.order.payment.isInsurance ? "Insurance" : "Cash"; return globalMethods.callHttpClient({ - method: endpoints.GetMobileEarlyBirdFee.method, - endpoint: `${endpoints.GetMobileEarlyBirdFee.url}/${paymentType}/${damageType}`, + method: endpoints.GetMobilePremiumFee.method, + endpoint: `${endpoints.GetMobilePremiumFee.url}/${paymentType}/${damageType}`, }); },