Fixing conflicts
This commit is contained in:
commit
41ce911150
12 changed files with 72 additions and 57 deletions
|
|
@ -84,6 +84,7 @@ stages:
|
||||||
appDeployVariables:
|
appDeployVariables:
|
||||||
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
|
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
|
||||||
__VUE_APP_CURRENT_ENVIRONMENT__: $(__VUE_APP_CURRENT_ENVIRONMENT__)
|
__VUE_APP_CURRENT_ENVIRONMENT__: $(__VUE_APP_CURRENT_ENVIRONMENT__)
|
||||||
|
__VUE_APP_CUSTOMER_PORTAL_URL__: $(__VUE_APP_CUSTOMER_PORTAL_URL__)
|
||||||
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
|
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
|
||||||
__VUE_APP_SAFELITE_HOP__: $(__VUE_APP_SAFELITE_HOP__)
|
__VUE_APP_SAFELITE_HOP__: $(__VUE_APP_SAFELITE_HOP__)
|
||||||
indexDeployVariables:
|
indexDeployVariables:
|
||||||
|
|
@ -91,13 +92,13 @@ stages:
|
||||||
__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__: $(__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__)
|
__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__: $(__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__)
|
||||||
__VUE_APP_GOOGLE_MAPS_API_SCRIPT__: $(__VUE_APP_GOOGLE_MAPS_API_SCRIPT__)
|
__VUE_APP_GOOGLE_MAPS_API_SCRIPT__: $(__VUE_APP_GOOGLE_MAPS_API_SCRIPT__)
|
||||||
- template: templates/digital/invalidate-cloudfront-cache.yml@AzureDevOps
|
- template: templates/digital/invalidate-cloudfront-cache.yml@AzureDevOps
|
||||||
parameters:
|
parameters:
|
||||||
awsCliContainer: awscli
|
awsCliContainer: awscli
|
||||||
distributionId: $(cfDistributionId)
|
distributionId: $(cfDistributionId)
|
||||||
paths: /*
|
paths: /*
|
||||||
awsProfile: $(devDeploymentProfile)
|
awsProfile: $(devDeploymentProfile)
|
||||||
|
|
||||||
# Test Build/Deploy
|
# Test Build/Deploy
|
||||||
- stage: Test
|
- stage: Test
|
||||||
condition: eq(variables['Build.SourceBranch'], variables['test-branch'] )
|
condition: eq(variables['Build.SourceBranch'], variables['test-branch'] )
|
||||||
variables:
|
variables:
|
||||||
|
|
@ -133,8 +134,9 @@ stages:
|
||||||
deployFolder: ""
|
deployFolder: ""
|
||||||
region: us-east-2
|
region: us-east-2
|
||||||
appDeployVariables:
|
appDeployVariables:
|
||||||
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
|
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
|
||||||
__VUE_APP_CURRENT_ENVIRONMENT__: $(__VUE_APP_CURRENT_ENVIRONMENT__)
|
__VUE_APP_CURRENT_ENVIRONMENT__: $(__VUE_APP_CURRENT_ENVIRONMENT__)
|
||||||
|
__VUE_APP_CUSTOMER_PORTAL_URL__: $(__VUE_APP_CUSTOMER_PORTAL_URL__)
|
||||||
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
|
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
|
||||||
__VUE_APP_SAFELITE_HOP__: $(__VUE_APP_SAFELITE_HOP__)
|
__VUE_APP_SAFELITE_HOP__: $(__VUE_APP_SAFELITE_HOP__)
|
||||||
indexDeployVariables:
|
indexDeployVariables:
|
||||||
|
|
@ -142,12 +144,12 @@ stages:
|
||||||
__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__: $(__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__)
|
__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__: $(__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__)
|
||||||
__VUE_APP_GOOGLE_MAPS_API_SCRIPT__: $(__VUE_APP_GOOGLE_MAPS_API_SCRIPT__)
|
__VUE_APP_GOOGLE_MAPS_API_SCRIPT__: $(__VUE_APP_GOOGLE_MAPS_API_SCRIPT__)
|
||||||
- template: templates/digital/invalidate-cloudfront-cache.yml@AzureDevOps
|
- template: templates/digital/invalidate-cloudfront-cache.yml@AzureDevOps
|
||||||
parameters:
|
parameters:
|
||||||
awsCliContainer: awscli
|
awsCliContainer: awscli
|
||||||
distributionId: $(cfDistributionId)
|
distributionId: $(cfDistributionId)
|
||||||
paths: /*
|
paths: /*
|
||||||
awsProfile: $(sysDeploymentProfile)
|
awsProfile: $(sysDeploymentProfile)
|
||||||
|
|
||||||
# QA Build/Deploy
|
# QA Build/Deploy
|
||||||
- stage: QA
|
- stage: QA
|
||||||
condition: eq(variables['Build.SourceBranch'], variables['qa-branch'] )
|
condition: eq(variables['Build.SourceBranch'], variables['qa-branch'] )
|
||||||
|
|
@ -186,6 +188,7 @@ stages:
|
||||||
appDeployVariables:
|
appDeployVariables:
|
||||||
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
|
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
|
||||||
__VUE_APP_CURRENT_ENVIRONMENT__: $(__VUE_APP_CURRENT_ENVIRONMENT__)
|
__VUE_APP_CURRENT_ENVIRONMENT__: $(__VUE_APP_CURRENT_ENVIRONMENT__)
|
||||||
|
__VUE_APP_CUSTOMER_PORTAL_URL__: $(__VUE_APP_CUSTOMER_PORTAL_URL__)
|
||||||
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
|
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
|
||||||
__VUE_APP_SAFELITE_HOP__: $(__VUE_APP_SAFELITE_HOP__)
|
__VUE_APP_SAFELITE_HOP__: $(__VUE_APP_SAFELITE_HOP__)
|
||||||
indexDeployVariables:
|
indexDeployVariables:
|
||||||
|
|
@ -193,7 +196,7 @@ stages:
|
||||||
__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__: $(__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__)
|
__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__: $(__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__)
|
||||||
__VUE_APP_GOOGLE_MAPS_API_SCRIPT__: $(__VUE_APP_GOOGLE_MAPS_API_SCRIPT__)
|
__VUE_APP_GOOGLE_MAPS_API_SCRIPT__: $(__VUE_APP_GOOGLE_MAPS_API_SCRIPT__)
|
||||||
- template: templates/digital/invalidate-cloudfront-cache.yml@AzureDevOps
|
- template: templates/digital/invalidate-cloudfront-cache.yml@AzureDevOps
|
||||||
parameters:
|
parameters:
|
||||||
awsCliContainer: awscli
|
awsCliContainer: awscli
|
||||||
distributionId: $(cfDistributionId)
|
distributionId: $(cfDistributionId)
|
||||||
paths: /*
|
paths: /*
|
||||||
|
|
@ -237,6 +240,7 @@ stages:
|
||||||
appDeployVariables:
|
appDeployVariables:
|
||||||
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
|
__VUE_APP_CONSUMER_CF_DISTRO__: $(__VUE_APP_CONSUMER_CF_DISTRO__)
|
||||||
__VUE_APP_CURRENT_ENVIRONMENT__: $(__VUE_APP_CURRENT_ENVIRONMENT__)
|
__VUE_APP_CURRENT_ENVIRONMENT__: $(__VUE_APP_CURRENT_ENVIRONMENT__)
|
||||||
|
__VUE_APP_CUSTOMER_PORTAL_URL__: $(__VUE_APP_CUSTOMER_PORTAL_URL__)
|
||||||
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
|
__VUE_APP_GOOGLE_PLACES_API_KEY__: $(__VUE_APP_GOOGLE_PLACES_API_KEY__)
|
||||||
__VUE_APP_SAFELITE_HOP__: $(__VUE_APP_SAFELITE_HOP__)
|
__VUE_APP_SAFELITE_HOP__: $(__VUE_APP_SAFELITE_HOP__)
|
||||||
indexDeployVariables:
|
indexDeployVariables:
|
||||||
|
|
@ -244,7 +248,7 @@ stages:
|
||||||
__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__: $(__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__)
|
__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__: $(__VUE_APP_GOOGLE_TAG_MANAGER_NOSCRIPT_FRAME_SRC__)
|
||||||
__VUE_APP_GOOGLE_MAPS_API_SCRIPT__: $(__VUE_APP_GOOGLE_MAPS_API_SCRIPT__)
|
__VUE_APP_GOOGLE_MAPS_API_SCRIPT__: $(__VUE_APP_GOOGLE_MAPS_API_SCRIPT__)
|
||||||
- template: templates/digital/invalidate-cloudfront-cache.yml@AzureDevOps
|
- template: templates/digital/invalidate-cloudfront-cache.yml@AzureDevOps
|
||||||
parameters:
|
parameters:
|
||||||
awsCliContainer: awscli
|
awsCliContainer: awscli
|
||||||
distributionId: $(cfDistributionId)
|
distributionId: $(cfDistributionId)
|
||||||
paths: /*
|
paths: /*
|
||||||
|
|
@ -255,4 +259,3 @@ stages:
|
||||||
userName: SafeliteAzureDevops
|
userName: SafeliteAzureDevops
|
||||||
userEmail: githubazuredevops@safelite.com
|
userEmail: githubazuredevops@safelite.com
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
const applicationConfig = Object.freeze({
|
const applicationConfig = Object.freeze({
|
||||||
CURRENT_ENVIRONMENT: process.env.VUE_APP_CURRENT_ENVIRONMENT, // "Localhost", "Dev", "QA", and "Prod"
|
CURRENT_ENVIRONMENT: process.env.VUE_APP_CURRENT_ENVIRONMENT, // "Localhost", "Dev", "QA", and "Prod"
|
||||||
CONSUMER_CF_DISTRO: process.env.VUE_APP_CONSUMER_CF_DISTRO,
|
CONSUMER_CF_DISTRO: process.env.VUE_APP_CONSUMER_CF_DISTRO,
|
||||||
|
CUSTOMER_PORTAL_URL: process.env.VUE_APP_CUSTOMER_PORTAL_URL,
|
||||||
ANALYTICS_SESSION_TIMEOUT_MINUTES: 30,
|
ANALYTICS_SESSION_TIMEOUT_MINUTES: 30,
|
||||||
SAVED_SESSION_TIMEOUT_DAYS: 45,
|
SAVED_SESSION_TIMEOUT_DAYS: 45,
|
||||||
COOKIE_PATH: '/',
|
COOKIE_PATH: '/',
|
||||||
|
|
|
||||||
|
|
@ -42,13 +42,7 @@ function getMountedComponent(mainInitialState = {}, initialData = {}, propsData
|
||||||
describe('cart-dropdown component', () => {
|
describe('cart-dropdown component', () => {
|
||||||
test('initial data rendered as expected', () => {
|
test('initial data rendered as expected', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const { wrapper } = getMountedComponent({
|
const { wrapper } = getMountedComponent({});
|
||||||
order: {
|
|
||||||
lineItems: {
|
|
||||||
supportingItems: []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
expect(wrapper.vm.$data).toMatchSnapshot();
|
expect(wrapper.vm.$data).toMatchSnapshot();
|
||||||
|
|
@ -239,13 +233,9 @@ describe('cart-dropdown component', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const storeData = {
|
const storeData = {
|
||||||
order: {
|
order: {
|
||||||
payment: {
|
|
||||||
insuranceCoverage: {
|
|
||||||
coverageStatus: coverageStatuses.NO_COMP
|
|
||||||
}
|
|
||||||
},
|
|
||||||
policy: {
|
policy: {
|
||||||
isITAC: isItac
|
isITAC: isItac,
|
||||||
|
noCoverage: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -285,13 +275,9 @@ describe('cart-dropdown component', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const storeData = {
|
const storeData = {
|
||||||
order: {
|
order: {
|
||||||
payment: {
|
|
||||||
insuranceCoverage: {
|
|
||||||
coverageStatus: coverageStatuses.PENDING
|
|
||||||
}
|
|
||||||
},
|
|
||||||
policy: {
|
policy: {
|
||||||
isITAC: false
|
isITAC: false,
|
||||||
|
noCoverage: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -309,13 +295,9 @@ describe('cart-dropdown component', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const storeData = {
|
const storeData = {
|
||||||
order: {
|
order: {
|
||||||
payment: {
|
|
||||||
insuranceCoverage: {
|
|
||||||
coverageStatus: coverageStatuses.NO_COMP
|
|
||||||
}
|
|
||||||
},
|
|
||||||
policy: {
|
policy: {
|
||||||
isITAC: false
|
isITAC: false,
|
||||||
|
noCoverage: true,
|
||||||
},
|
},
|
||||||
currentDeductible: null
|
currentDeductible: null
|
||||||
}
|
}
|
||||||
|
|
@ -378,13 +360,9 @@ describe('cart-dropdown component', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const storeData = {
|
const storeData = {
|
||||||
order: {
|
order: {
|
||||||
payment: {
|
|
||||||
insuranceCoverage: {
|
|
||||||
coverageStatus: coverageStatuses.VERIFIED
|
|
||||||
}
|
|
||||||
},
|
|
||||||
policy: {
|
policy: {
|
||||||
isITAC: false
|
isITAC: false,
|
||||||
|
noCoverage: false
|
||||||
},
|
},
|
||||||
currentDeductible: null
|
currentDeductible: null
|
||||||
}
|
}
|
||||||
|
|
@ -526,13 +504,9 @@ describe('cart-dropdown component', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const storeData = {
|
const storeData = {
|
||||||
order: {
|
order: {
|
||||||
payment: {
|
|
||||||
insuranceCoverage: {
|
|
||||||
coverageStatus: coverageStatuses.NO_COMP
|
|
||||||
}
|
|
||||||
},
|
|
||||||
policy: {
|
policy: {
|
||||||
isITAC: false
|
isITAC: false,
|
||||||
|
noCoverage: true
|
||||||
},
|
},
|
||||||
currentDeductible: 321
|
currentDeductible: 321
|
||||||
}
|
}
|
||||||
|
|
@ -579,7 +553,7 @@ describe('cart-dropdown component', () => {
|
||||||
test('Shows recycle fee when preset in supported items', () => {
|
test('Shows recycle fee when preset in supported items', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const reference = '#recycle-fee-item';
|
const reference = '#recycle-fee-item';
|
||||||
const {wrapper} = getMountedComponent({
|
const { wrapper } = getMountedComponent({
|
||||||
order: {
|
order: {
|
||||||
lineItems: {
|
lineItems: {
|
||||||
supportingItems: [{
|
supportingItems: [{
|
||||||
|
|
@ -599,7 +573,7 @@ describe('cart-dropdown component', () => {
|
||||||
test('Hides recycle fee when not in supported items', () => {
|
test('Hides recycle fee when not in supported items', () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const reference = '#recycle-fee-item';
|
const reference = '#recycle-fee-item';
|
||||||
const {wrapper} = getMountedComponent({
|
const { wrapper } = getMountedComponent({
|
||||||
order: {
|
order: {
|
||||||
lineItems: {
|
lineItems: {
|
||||||
supportingItems: []
|
supportingItems: []
|
||||||
|
|
|
||||||
|
|
@ -340,7 +340,6 @@ export default {
|
||||||
? VERIFYING_COVERAGE
|
? VERIFYING_COVERAGE
|
||||||
: formatAmountInDollars(amount);
|
: formatAmountInDollars(amount);
|
||||||
},
|
},
|
||||||
formatAmountInDollars,
|
|
||||||
getCartItem(label, lineItems) {
|
getCartItem(label, lineItems) {
|
||||||
let cartItem = null;
|
let cartItem = null;
|
||||||
|
|
||||||
|
|
@ -368,7 +367,8 @@ export default {
|
||||||
const vapsTypeName = vapsItemDescriptions.find((entry) => entry.Name === vapsType);
|
const vapsTypeName = vapsItemDescriptions.find((entry) => entry.Name === vapsType);
|
||||||
|
|
||||||
return vapsTypeName.Text;
|
return vapsTypeName.Text;
|
||||||
}
|
},
|
||||||
|
formatAmountInDollars
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,9 @@
|
||||||
v-html="appointmentWordingText2">
|
v-html="appointmentWordingText2">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="email-confirmation-text"
|
||||||
|
v-html="confirmationEmailText" />
|
||||||
<siteFooter
|
<siteFooter
|
||||||
v-if="carrierUrl"
|
v-if="carrierUrl"
|
||||||
ref="siteFooter"
|
ref="siteFooter"
|
||||||
|
|
@ -78,6 +81,7 @@ import { get12HourTimeFormat,
|
||||||
getDisplayTextForDurationLength } from '@/helpers/date-helper.js';
|
getDisplayTextForDurationLength } from '@/helpers/date-helper.js';
|
||||||
import { toTitleCase } from '@/helpers/text-helper.js';
|
import { toTitleCase } from '@/helpers/text-helper.js';
|
||||||
import { AppointmentTypeStrings } from '@/constants/schedule-constants';
|
import { AppointmentTypeStrings } from '@/constants/schedule-constants';
|
||||||
|
import applicationConfig from '@/constants/application-config';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'order-confirmation',
|
name: 'order-confirmation',
|
||||||
|
|
@ -118,6 +122,13 @@ export default {
|
||||||
carrierUrl() {
|
carrierUrl() {
|
||||||
return this.mainStore.issConfig.successReturnURL;
|
return this.mainStore.issConfig.successReturnURL;
|
||||||
},
|
},
|
||||||
|
confirmationEmailText() {
|
||||||
|
return this.getCmsContent('EmailConfirmationWordingWidget', 'BodyText')
|
||||||
|
?.replaceAll('{custom:CUSTOMER_PORTAL_URL}', applicationConfig.CUSTOMER_PORTAL_URL)
|
||||||
|
?.replaceAll('{custom:CUSTOMER_PORTAL_LOGIN_TOKEN}', this.submittedOrder.customerPortalLoginToken)
|
||||||
|
?.replaceAll('<', '<')
|
||||||
|
?.replaceAll('>', '>');
|
||||||
|
},
|
||||||
orderConfirmationHeaderText() {
|
orderConfirmationHeaderText() {
|
||||||
return this.getCmsContent('OrderConfirmationContent', 'HeaderText');
|
return this.getCmsContent('OrderConfirmationContent', 'HeaderText');
|
||||||
},
|
},
|
||||||
|
|
@ -338,4 +349,11 @@ $page-side-padding: 1.5rem;
|
||||||
color: $black;
|
color: $black;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.email-confirmation-text {
|
||||||
|
:deep(a) {
|
||||||
|
font-weight: $font-weight-bold;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -514,11 +514,11 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
payInAdvanceResponseUrl() {
|
payInAdvanceResponseUrl() {
|
||||||
const { protocol, host } = window.location;
|
const { protocol, host } = window.location;
|
||||||
return `${protocol}//${host}/?issPage=${issPageValues.PAYMENT_RETURN}&src=concept-funnel`;
|
return `${protocol}//${host}/?issPage=${issPageValues.PAYMENT_RETURN}&src=iss-nextgen`;
|
||||||
},
|
},
|
||||||
payInAdvanceCancelUrl() {
|
payInAdvanceCancelUrl() {
|
||||||
const { protocol, host } = window.location;
|
const { protocol, host } = window.location;
|
||||||
return `${protocol}//${host}/?issPage=${issPageValues.PAYMENT_METHOD}&src=concept-funnel`;
|
return `${protocol}//${host}/?issPage=${issPageValues.PAYMENT_METHOD}&src=iss-nextgen`;
|
||||||
},
|
},
|
||||||
dynamicCSSUrl() {
|
dynamicCSSUrl() {
|
||||||
const { protocol, hostname, port } = window.location;
|
const { protocol, hostname, port } = window.location;
|
||||||
|
|
|
||||||
|
|
@ -343,7 +343,10 @@ export default {
|
||||||
let provider = this.selectedProvider;
|
let provider = this.selectedProvider;
|
||||||
this.mainStore.updateMobileFee(null);
|
this.mainStore.updateMobileFee(null);
|
||||||
if (this.isMobileLocationDisplayed) {
|
if (this.isMobileLocationDisplayed) {
|
||||||
this.mainStore.updateMobileFee(this.mobileFeePart);
|
if (this.mainStore.isNoComp || this.mainStore.isITAC) {
|
||||||
|
this.mainStore.updateMobileFee(this.mobileFeePart);
|
||||||
|
}
|
||||||
|
|
||||||
provider = {
|
provider = {
|
||||||
providerNumber: this.mobileProviderNumber,
|
providerNumber: this.mobileProviderNumber,
|
||||||
address: {
|
address: {
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ export default {
|
||||||
const lastSixChars = this.vin.substring(11, this.vin.length);
|
const lastSixChars = this.vin.substring(11, this.vin.length);
|
||||||
return `!X!X!X!X!X!X!X!X!X!X!X${lastSixChars}`;
|
return `!X!X!X!X!X!X!X!X!X!X!X${lastSixChars}`;
|
||||||
}
|
}
|
||||||
return 'XXXXXXXXXXXXXXXXX';
|
return '*****************';
|
||||||
},
|
},
|
||||||
carIdIsValid() {
|
carIdIsValid() {
|
||||||
return this.hasValidCarId();
|
return this.hasValidCarId();
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getAmountDue(lineItems) {
|
getAmountDue(lineItems) {
|
||||||
if (!useMainStore().isNoComp && !useMainStore().policy.isITAC) {
|
if (!useMainStore().isNoComp && !useMainStore().isITAC) {
|
||||||
return useMainStore().order.currentDeductible;
|
return useMainStore().order.currentDeductible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ import {
|
||||||
noCoverageForSelectedVehicle,
|
noCoverageForSelectedVehicle,
|
||||||
repairWaivedForSelectedVehicle
|
repairWaivedForSelectedVehicle
|
||||||
} from '@/helpers/policy-vehicle-helper';
|
} from '@/helpers/policy-vehicle-helper';
|
||||||
|
import partTypeStrings from '@/constants/part-type-strings';
|
||||||
|
|
||||||
const storeId = 'main';
|
const storeId = 'main';
|
||||||
|
|
||||||
|
|
@ -197,6 +198,7 @@ const getDefaultState = () => ({
|
||||||
referralSequenceNumber: null,
|
referralSequenceNumber: null,
|
||||||
eon: null,
|
eon: null,
|
||||||
workOrderNumber: null,
|
workOrderNumber: null,
|
||||||
|
customerPortalLoginToken: null,
|
||||||
originalDeductible: null,
|
originalDeductible: null,
|
||||||
currentDeductible: null,
|
currentDeductible: null,
|
||||||
carrierPhoneNumber: null,
|
carrierPhoneNumber: null,
|
||||||
|
|
@ -259,7 +261,8 @@ export const useMainStore = defineStore({
|
||||||
isClaimRegistrationRequired: (state) => state.issConfig.isClaimRegistrationRequired,
|
isClaimRegistrationRequired: (state) => state.issConfig.isClaimRegistrationRequired,
|
||||||
isClaimAlreadyRegistered: (state) => state.order.payment.insuranceCoverage.claimNumber !== null,
|
isClaimAlreadyRegistered: (state) => state.order.payment.insuranceCoverage.claimNumber !== null,
|
||||||
isBailout: (state) => state.applicationUser.pageData[issPageValues.BAILOUT_PAGE] != null,
|
isBailout: (state) => state.applicationUser.pageData[issPageValues.BAILOUT_PAGE] != null,
|
||||||
isNoComp: (state) => state.order.payment.insuranceCoverage.coverageStatus === coverageStatuses.NO_COMP,
|
isNoComp: (state) => !!state.order.policy.noCoverage,
|
||||||
|
isITAC: (state) => !!state.order.policy.isITAC,
|
||||||
isVerifiedCoverageStatus: (state) => state.order.payment.insuranceCoverage.coverageStatus === coverageStatuses.VERIFIED,
|
isVerifiedCoverageStatus: (state) => state.order.payment.insuranceCoverage.coverageStatus === coverageStatuses.VERIFIED,
|
||||||
eventBusItem: (state) => (eventCategory, eventSubCategory) => {
|
eventBusItem: (state) => (eventCategory, eventSubCategory) => {
|
||||||
const matchedEvent = state.applicationUser.eventBus.find(({ category, subCategory }) => category === eventCategory && subCategory === eventSubCategory);
|
const matchedEvent = state.applicationUser.eventBus.find(({ category, subCategory }) => category === eventCategory && subCategory === eventSubCategory);
|
||||||
|
|
@ -1142,6 +1145,7 @@ export const useMainStore = defineStore({
|
||||||
this.order.referralCorrelationId = response.referralCorrelationId;
|
this.order.referralCorrelationId = response.referralCorrelationId;
|
||||||
this.order.eon = response.eon;
|
this.order.eon = response.eon;
|
||||||
this.order.workOrderNumber = response.workOrderNumber;
|
this.order.workOrderNumber = response.workOrderNumber;
|
||||||
|
this.order.customerPortalLoginToken = response.customerPortalLoginToken;
|
||||||
this.applicationUser.savedSessionId = response.savedSessionId;
|
this.applicationUser.savedSessionId = response.savedSessionId;
|
||||||
this.applicationUser.crmCustomerId = response.crmCustomerId.toString();
|
this.applicationUser.crmCustomerId = response.crmCustomerId.toString();
|
||||||
},
|
},
|
||||||
|
|
@ -1531,7 +1535,17 @@ export const useMainStore = defineStore({
|
||||||
},
|
},
|
||||||
|
|
||||||
updateSupportingItems(partsData) {
|
updateSupportingItems(partsData) {
|
||||||
this.order.lineItems.supportingItems = partsData;
|
if (partsData == null) {
|
||||||
|
this.order.lineItems.supportingItems = null;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let parts = partsData;
|
||||||
|
if (!this.isNoComp && !this.isITAC) {
|
||||||
|
parts = parts.filter((i) => i.partNumber !== partTypeStrings.RECYCLE_FEE);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.order.lineItems.supportingItems = parts;
|
||||||
},
|
},
|
||||||
|
|
||||||
updateVaps(partsData) {
|
updateVaps(partsData) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
/* eslint-disable max-len */
|
/* eslint-disable max-len */
|
||||||
process.env.VUE_APP_CONSUMER_CF_DISTRO = 'https://digitalapi.dev.safelite.io';
|
process.env.VUE_APP_CONSUMER_CF_DISTRO = 'https://digitalapi.dev.safelite.io';
|
||||||
process.env.VUE_APP_CURRENT_ENVIRONMENT = 'Localhost';
|
process.env.VUE_APP_CURRENT_ENVIRONMENT = 'Localhost';
|
||||||
|
process.env.VUE_APP_CUSTOMER_PORTAL_URL = 'https://myaccountdev.safelite.com/';
|
||||||
process.env.VUE_APP_GOOGLE_PLACES_API_KEY = 'AIzaSyCuLhQcDdZTTb4JzpUFms1OCch2dk5lHF0';
|
process.env.VUE_APP_GOOGLE_PLACES_API_KEY = 'AIzaSyCuLhQcDdZTTb4JzpUFms1OCch2dk5lHF0';
|
||||||
process.env.VUE_APP_SAFELITE_HOP = 'https://iss-hop-sys.glassclaim.com/fmgCheckoutEmbedded.aspx';
|
process.env.VUE_APP_SAFELITE_HOP = 'https://iss-hop-sys.glassclaim.com/fmgCheckoutEmbedded.aspx';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
process.env.VUE_APP_CONSUMER_CF_DISTRO = "__VUE_APP_CONSUMER_CF_DISTRO__";
|
process.env.VUE_APP_CONSUMER_CF_DISTRO = "__VUE_APP_CONSUMER_CF_DISTRO__";
|
||||||
process.env.VUE_APP_CURRENT_ENVIRONMENT = "__VUE_APP_CURRENT_ENVIRONMENT__";
|
process.env.VUE_APP_CURRENT_ENVIRONMENT = "__VUE_APP_CURRENT_ENVIRONMENT__";
|
||||||
|
process.env.VUE_APP_CUSTOMER_PORTAL_URL = '__VUE_APP_CUSTOMER_PORTAL_URL__';
|
||||||
process.env.VUE_APP_GOOGLE_PLACES_API_KEY = "__VUE_APP_GOOGLE_PLACES_API_KEY__";
|
process.env.VUE_APP_GOOGLE_PLACES_API_KEY = "__VUE_APP_GOOGLE_PLACES_API_KEY__";
|
||||||
process.env.VUE_APP_SAFELITE_HOP = "__VUE_APP_SAFELITE_HOP__";
|
process.env.VUE_APP_SAFELITE_HOP = "__VUE_APP_SAFELITE_HOP__";
|
||||||
|
|
||||||
|
|
@ -24,7 +25,7 @@ module.exports = {
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
devtool: 'source-map'
|
devtool: 'source-map'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue