Merge pull request #680 from Safelite/feature/SSR-1227
SSR-1227 fix order-confirmation cart from going unverified
This commit is contained in:
commit
da882a91b5
2 changed files with 66 additions and 13 deletions
|
|
@ -437,6 +437,23 @@ export default {
|
|||
partTypeStrings.MOBILE_FEE
|
||||
)
|
||||
: null;
|
||||
},
|
||||
isUnverified() {
|
||||
const { isClaimRegistrationRequired } = useMainStore().issConfig;
|
||||
const registerClaimSuccessful = !!this.submittedOrder.payment.insuranceCoverage.isVerified;
|
||||
if (!this.submittedOrder.policy.policyLookupSuccessful) {
|
||||
return true;
|
||||
}
|
||||
if (this.isNoComp && !useMainStore().issConfig.enableNoCompQuote) {
|
||||
return true;
|
||||
}
|
||||
if (!this.isNoComp && this.deductible == null) {
|
||||
return true;
|
||||
}
|
||||
if (isClaimRegistrationRequired && !registerClaimSuccessful) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -447,7 +464,7 @@ export default {
|
|||
this.isExpanded = !this.isExpanded;
|
||||
},
|
||||
getDisplayed(amount) {
|
||||
const { isUnverified } = useMainStore();
|
||||
const isUnverified = this.submittedOrder ? this.isUnverified : useMainStore().isUnverified;
|
||||
return isUnverified
|
||||
? VERIFYING_COVERAGE
|
||||
: formatAmountInDollars(amount);
|
||||
|
|
|
|||
|
|
@ -72,7 +72,10 @@ const initialStore = {
|
|||
},
|
||||
payment: {
|
||||
isInsurance: true,
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
contactInfo: {
|
||||
firstName: 'Test',
|
||||
|
|
@ -108,7 +111,10 @@ const sessionStorage = {
|
|||
}
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
@ -315,7 +321,10 @@ describe('OrderConfirmation.vue', () => {
|
|||
appointmentType: 'Mobile'
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
@ -354,7 +363,10 @@ describe('OrderConfirmation.vue', () => {
|
|||
}
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
@ -401,7 +413,10 @@ describe('OrderConfirmation.vue', () => {
|
|||
appointmentType: 'Mobile'
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
@ -440,7 +455,10 @@ describe('OrderConfirmation.vue', () => {
|
|||
appointmentType: 'Dropoff'
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
@ -479,7 +497,10 @@ describe('OrderConfirmation.vue', () => {
|
|||
appointmentType: 'Inshop'
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
@ -515,7 +536,10 @@ describe('OrderConfirmation.vue', () => {
|
|||
appointmentType: 'Mobile'
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
@ -554,7 +578,10 @@ describe('OrderConfirmation.vue', () => {
|
|||
appointmentType: 'Inshop'
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
@ -590,7 +617,10 @@ describe('OrderConfirmation.vue', () => {
|
|||
appointmentType: 'Mobile'
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
@ -629,7 +659,10 @@ describe('OrderConfirmation.vue', () => {
|
|||
appointmentType: 'Dropoff'
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
@ -669,7 +702,10 @@ describe('OrderConfirmation.vue', () => {
|
|||
appointmentType: 'Inshop'
|
||||
},
|
||||
payment: {
|
||||
isPayInAdvance: false
|
||||
isPayInAdvance: false,
|
||||
insuranceCoverage: {
|
||||
isVerified: true
|
||||
}
|
||||
},
|
||||
lineItems: {
|
||||
vaps: []
|
||||
|
|
|
|||
Loading…
Reference in a new issue