Merge pull request #559 from Safelite/feature/digital/SSR-1063
Feature/digital/ssr 1063
This commit is contained in:
commit
111c1a6cc0
2 changed files with 14 additions and 15 deletions
|
|
@ -178,12 +178,11 @@ describe('payment-page.vue', () => {
|
||||||
},
|
},
|
||||||
techNotes: ''
|
techNotes: ''
|
||||||
},
|
},
|
||||||
customer: {
|
contactInfo: {
|
||||||
firstName: 'first',
|
firstName: 'first',
|
||||||
lastName: 'last',
|
lastName: 'last',
|
||||||
emailAddress: 'builddigitaltest@safelite.com',
|
emailAddress: 'builddigitaltest@safelite.com',
|
||||||
phoneNumber: '555-555-5555',
|
phoneNumber: '555-555-5555'
|
||||||
isSmsOptIn: false
|
|
||||||
},
|
},
|
||||||
damage: {
|
damage: {
|
||||||
isRepair: false,
|
isRepair: false,
|
||||||
|
|
|
||||||
|
|
@ -239,15 +239,15 @@ export default {
|
||||||
authSignature: '',
|
authSignature: '',
|
||||||
authSignatureStart: '',
|
authSignatureStart: '',
|
||||||
referralSequenceNumber: useMainStore().order.referralSequenceNumber,
|
referralSequenceNumber: useMainStore().order.referralSequenceNumber,
|
||||||
emailAddress: useMainStore().order.customer.emailAddress,
|
emailAddress: useMainStore().order.contactInfo.emailAddress,
|
||||||
address1: this.getAddress1(),
|
address1: this.getAddress1(),
|
||||||
address2: this.getAddress2(),
|
address2: this.getAddress2(),
|
||||||
city: this.getCity(),
|
city: this.getCity(),
|
||||||
state: this.getState(),
|
state: this.getState(),
|
||||||
zipCode: this.getZipCode(),
|
zipCode: this.getZipCode(),
|
||||||
firstName: useMainStore().order.customer.firstName,
|
firstName: useMainStore().order.contactInfo.firstName,
|
||||||
lastName: useMainStore().order.customer.lastName,
|
lastName: useMainStore().order.contactInfo.lastName,
|
||||||
phoneNumber: useMainStore().order.customer.phoneNumber,
|
phoneNumber: useMainStore().order.contactInfo.phoneNumber,
|
||||||
ctu: useMainStore().order.serviceLocation.zipCodeCtu,
|
ctu: useMainStore().order.serviceLocation.zipCodeCtu,
|
||||||
referralCorrelationId: useMainStore().order.referralCorrelationId,
|
referralCorrelationId: useMainStore().order.referralCorrelationId,
|
||||||
workOrderNumber: this.getWorkOrderNumber(),
|
workOrderNumber: this.getWorkOrderNumber(),
|
||||||
|
|
@ -336,13 +336,13 @@ export default {
|
||||||
&& schedule.jobMinMinutes
|
&& schedule.jobMinMinutes
|
||||||
);
|
);
|
||||||
|
|
||||||
// Customer
|
// Contact Info
|
||||||
const { customer } = useMainStore().order;
|
const { contactInfo } = useMainStore().order;
|
||||||
const customerReqs = !!(
|
const contactInfoReqs = !!(
|
||||||
customer.firstName
|
contactInfo.firstName
|
||||||
&& customer.lastName
|
&& contactInfo.lastName
|
||||||
&& customer.phoneNumber
|
&& contactInfo.phoneNumber
|
||||||
&& customer.emailAddress
|
&& contactInfo.emailAddress
|
||||||
);
|
);
|
||||||
|
|
||||||
const paymentMethodReqs =
|
const paymentMethodReqs =
|
||||||
|
|
@ -354,7 +354,7 @@ export default {
|
||||||
&& serviceLocationReqs
|
&& serviceLocationReqs
|
||||||
&& isInsuranceSet
|
&& isInsuranceSet
|
||||||
&& scheduleReqs
|
&& scheduleReqs
|
||||||
&& customerReqs
|
&& contactInfoReqs
|
||||||
&& paymentMethodReqs
|
&& paymentMethodReqs
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue