Adding consumer model to save session
This commit is contained in:
parent
c7f54b8b7e
commit
242b947b14
1 changed files with 9 additions and 3 deletions
|
|
@ -720,6 +720,7 @@ export const useMainStore = defineStore({
|
|||
savedSessionId: applicationUser.savedSessionId,
|
||||
},
|
||||
order: {
|
||||
// done
|
||||
vehicle: {
|
||||
carId: vehicle.carId,
|
||||
year: vehicle.year,
|
||||
|
|
@ -737,9 +738,7 @@ export const useMainStore = defineStore({
|
|||
licensePlateNumber: vehicle.registration.licensePlate,
|
||||
},
|
||||
},
|
||||
customer: {
|
||||
emailAddress: order.customer.emailAddress,
|
||||
},
|
||||
// done
|
||||
damage: {
|
||||
numberOfChips: damage.numberOfChips,
|
||||
glassToReplace: newGlassToReplace,
|
||||
|
|
@ -748,6 +747,13 @@ export const useMainStore = defineStore({
|
|||
moldingQuestionAnswers: order.damage.moldingQuestionAnswers,
|
||||
capabilityQuestionAnswers: order.damage.capabilityQuestionAnswers,
|
||||
},
|
||||
customer: {
|
||||
emailAddress: order.customer.emailAddress,
|
||||
firstName: order.customer.firstName,
|
||||
lastName: order.customer.lastName,
|
||||
phoneNumber: order.customer.phone, // TODO contact info or customer?
|
||||
optInSms: order.contactInfo.requestTextUpdates
|
||||
},
|
||||
lineItems: {
|
||||
glassParts: lineItems.glassParts,
|
||||
supportingItems: lineItems.supportingItems,
|
||||
|
|
|
|||
Loading…
Reference in a new issue