Merge pull request #1710 from Safelite/rlsmerge/endToEnd-to-develop

Rlsmerge/end to end to develop
This commit is contained in:
CarlNation 2024-01-29 12:33:41 -05:00 committed by GitHub
commit ca9c821b31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View file

@ -18,6 +18,16 @@ import router from "@/router";
the user has an existing order and they come back in from the Safelite.com CTA. the user has an existing order and they come back in from the Safelite.com CTA.
*/ */
export async function getPageToRouteExistingOrderTo(toRoute = {}) { export async function getPageToRouteExistingOrderTo(toRoute = {}) {
const fmgPage = getQuerystringParameter(queryStrings.FMG_PAGE.toLowerCase());
if (fmgPage && fmgPage === fmgPageValues.SERVICE_LOCATION) {
const serviceLocationComponent = await getLazyLoadedComponent(
fmgPageValues.SERVICE_LOCATION
);
if (serviceLocationComponent.methods.arePagePrerequisitesValid()) {
return fmgPageValues.SERVICE_LOCATION;
}
}
// If the user is coming in via the Safelite.Com CTA // If the user is coming in via the Safelite.Com CTA
if (toRoute.query[queryStrings.START_TYPE] === "fmg") { if (toRoute.query[queryStrings.START_TYPE] === "fmg") {
const latestPageRoute = await getLatestPageForRedirection(); const latestPageRoute = await getLatestPageForRedirection();

View file

@ -99,6 +99,7 @@ const getDefaultState = () => {
coverageVerificationType: null, coverageVerificationType: null,
}, },
parentAccountNumber: 0, parentAccountNumber: 0,
billToAccountNumber: null,
isPia: null, isPia: null,
piaType: null, piaType: null,
inactivePromos: null, inactivePromos: null,
@ -118,6 +119,13 @@ const getDefaultState = () => {
lastFour: null, lastFour: null,
}, },
}, },
policy: {
currentDeductible: 0,
policyNumber: null,
dateOfLoss: null,
isItac: false,
additionalAuthFlag: null,
},
schedule: { schedule: {
date: null, date: null,
startTime: null, startTime: null,
@ -656,6 +664,7 @@ export const getters = {
applicationUser: (state) => state.applicationUser, applicationUser: (state) => state.applicationUser,
order: (state) => state.order, order: (state) => state.order,
payment: (state) => state.order.payment, payment: (state) => state.order.payment,
policy: (state) => state.order.policy,
experimentOrder: (state) => { experimentOrder: (state) => {
return { return {
funnelVehicleYear: state.order.vehicle.year, funnelVehicleYear: state.order.vehicle.year,
@ -1691,6 +1700,7 @@ export const actions = {
lastFour: order.payment.ccToken.lastFour, lastFour: order.payment.ccToken.lastFour,
}, },
}, },
policy: {},
serviceLocation: { serviceLocation: {
streetAddress: order.serviceLocation.address, streetAddress: order.serviceLocation.address,
streetAddress2: order.serviceLocation.address2, streetAddress2: order.serviceLocation.address2,