diff --git a/src/store/index.js b/src/store/index.js index 0e93e6c4d..4d627e7e9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1453,7 +1453,7 @@ export const actions = { ) { const order = context.state.order; const vehicle = context.state.order.vehicle; - + const payment = context.state.order.payment; let lineItems = [ ...(order.lineItems.supportingItems ?? []), ...(order.lineItems.vaps ?? []), @@ -1475,15 +1475,15 @@ export const actions = { endDate: endDate, shopAppointmentType: shopAppointmentType, applicationName: applicationConfig.APPLICATION_NAME, - parentAccountNumber: context.getters.payment.parentAccountNumber, + parentAccountNumber: payment.parentAccountNumber, carId: vehicle.carId, lineItems: lineItems, glassPieces: glassPieces, eon: order.eon, coverage: { - status: "", - deductible: 0, - additionalAuthFlag: "", + status: payment.insuranceCoverage.coverageStatus, + deductible: order.policy.currentDeductible, + additionalAuthFlag: order.policy.additionalAuthFlag, }, partSelection: { hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers?.length, @@ -1521,6 +1521,7 @@ export const actions = { getMobileTimeSlots(context, { payload: { startDate, endDate }, pageNameToLog }) { const order = context.state.order; const vehicle = context.state.order.vehicle; + const payment = context.state.order.payment; let lineItems = [ ...(order.lineItems.supportingItems ?? []), ...(order.lineItems.vaps ?? []), @@ -1539,15 +1540,15 @@ export const actions = { startDate: startDate, endDate: endDate, applicationName: applicationConfig.APPLICATION_NAME, - parentAccountNumber: context.getters.payment.parentAccountNumber, + parentAccountNumber: payment.parentAccountNumber, carId: vehicle.carId, lineItems: lineItems, glassPieces: glassPieces, eon: order.eon, coverage: { - status: "", - deductible: 0, - additionalAuthFlag: "", + status: payment.insuranceCoverage.coverageStatus, + deductible: order.policy.currentDeductible, + additionalAuthFlag: order.policy.additionalAuthFlag, }, partSelection: { hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers?.length, @@ -1566,6 +1567,7 @@ export const actions = { }, zipCode: order.serviceLocation.zipCode, }; + return globalMethods.callHttpClient({ method: endpoints.GetMobileTimeSlots.method, endpoint: endpoints.GetMobileTimeSlots.url,