From 8a1bd85fd57cc8228b99033ec947609f3ad40ef2 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Thu, 17 Aug 2023 09:00:20 -0400 Subject: [PATCH] api model changes api model changes --- src/constants/endpoints.js | 2 +- src/store/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 05a55cc5c..373779380 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -119,7 +119,7 @@ const endpoints = { method: "GET", }, SaveSession: { - url: "/order/api/v1/order/save-session", + url: "/order/api/v1/order/save-session/fmg", method: "POST", }, LoadSession: { diff --git a/src/store/index.js b/src/store/index.js index 6bdcffafc..2116e1658 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -476,7 +476,7 @@ export const mutations = { state.order.customer.emailAddress = sessionInformation.order.customer.emailAddress; state.order.customer.firstName = sessionInformation.order.customer.firstName; state.order.customer.lastName = sessionInformation.order.customer.lastName; - state.order.customer.phoneNumber = sessionInformation.order.customer.phoneNumber; + state.order.customer.phoneNumber = sessionInformation.order.customer.servicePhoneNumber; state.order.customer.isSmsOptIn = sessionInformation.order.customer.isSmsOptIn; state.order.existingPromoCode = sessionInformation.order.existingPromoCode; @@ -1430,7 +1430,7 @@ export const actions = { firstName: order.customer.firstName, lastName: order.customer.lastName, isSmsOptIn: order.customer.isSmsOptIn, - phoneNumber: order.customer.phoneNumber, + servicePhoneNumber: order.customer.phoneNumber, }, damage: { numberOfChips: damage.numberOfChips,