change mobile_insurance to mobile_not_itac

This commit is contained in:
Bill Richardson 2023-10-05 17:00:15 -04:00
parent 40d4275842
commit bf45490281
7 changed files with 12 additions and 12 deletions

View file

@ -1,7 +1,7 @@
const AppointmentTypeStrings = { const AppointmentTypeStrings = {
IN_SHOP: 'Inshop', IN_SHOP: 'Inshop',
MOBILE: 'Mobile', MOBILE: 'Mobile',
MOBILE_INSURANCE: 'Mobile-Insurance', MOBILE_NOT_ITAC: 'Mobile-Not-ITAC',
DROP_OFF: 'Dropoff' DROP_OFF: 'Dropoff'
}; };
const PREMIUM_FEE_PART_TYPE = 'EARLY BIRD'; const PREMIUM_FEE_PART_TYPE = 'EARLY BIRD';

View file

@ -131,7 +131,7 @@ const getAvailableDates = async (
} }
if (appointmentType === AppointmentTypeStrings.MOBILE if (appointmentType === AppointmentTypeStrings.MOBILE
|| appointmentType === AppointmentTypeStrings.MOBILE_INSURANCE) { || appointmentType === AppointmentTypeStrings.MOBILE_NOT_ITAC) {
storeActionConfig = { storeActionConfig = {
storeAction: GET_MOBILE_TIME_SLOTS, storeAction: GET_MOBILE_TIME_SLOTS,
payload: { payload: {
@ -313,7 +313,7 @@ export default {
&& serviceLocation.zipCodeCtu && serviceLocation.zipCodeCtu
&& serviceLocation.appointmentType && serviceLocation.appointmentType
&& ((serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE && ((serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE
|| serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE_INSURANCE) || serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE_NOT_ITAC)
|| serviceLocation.provider.providerNumber); || serviceLocation.provider.providerNumber);
const paymentInfo = useMainStore().payment.isInsurance !== null; const paymentInfo = useMainStore().payment.isInsurance !== null;
const supportingItems = useMainStore().lineItems.supportingItems !== null; const supportingItems = useMainStore().lineItems.supportingItems !== null;

View file

@ -59,7 +59,7 @@ export default {
? this.answersFromCms.filter((answer) => ( ? this.answersFromCms.filter((answer) => (
(answer.Name === AppointmentTypeStrings.IN_SHOP && shouldShowInshop) (answer.Name === AppointmentTypeStrings.IN_SHOP && shouldShowInshop)
|| (answer.Name === AppointmentTypeStrings.MOBILE && shouldShowMobile) || (answer.Name === AppointmentTypeStrings.MOBILE && shouldShowMobile)
|| (answer.Name === AppointmentTypeStrings.MOBILE_INSURANCE && shouldShowMobileInsurance) || (answer.Name === AppointmentTypeStrings.MOBILE_NOT_ITAC && shouldShowMobileInsurance)
|| (answer.Name === AppointmentTypeStrings.DROP_OFF && shouldShowDropoff) || (answer.Name === AppointmentTypeStrings.DROP_OFF && shouldShowDropoff)
)) ))
: []; : [];
@ -86,12 +86,12 @@ export default {
if ( if (
newValue.length === 1 newValue.length === 1
&& newValue.findIndex((answer) => (answer.Name === AppointmentTypeStrings.MOBILE && newValue.findIndex((answer) => (answer.Name === AppointmentTypeStrings.MOBILE
|| answer.Name === AppointmentTypeStrings.MOBILE_INSURANCE)) !== -1 || answer.Name === AppointmentTypeStrings.MOBILE_NOT_ITAC)) !== -1
) { ) {
if (this.isITAC) { if (this.isITAC) {
this.selectedValues = AppointmentTypeStrings.MOBILE; this.selectedValues = AppointmentTypeStrings.MOBILE;
} else { } else {
this.selectedValues = AppointmentTypeStrings.MOBILE_INSURANCE; this.selectedValues = AppointmentTypeStrings.MOBILE_NOT_ITAC;
} }
} }
}, },
@ -103,7 +103,7 @@ export default {
if (this.isITAC) { if (this.isITAC) {
this.selectedValues = AppointmentTypeStrings.MOBILE; this.selectedValues = AppointmentTypeStrings.MOBILE;
} else { } else {
this.selectedValues = AppointmentTypeStrings.MOBILE_INSURANCE; this.selectedValues = AppointmentTypeStrings.MOBILE_NOT_ITAC;
} }
} }
} }

View file

@ -262,7 +262,7 @@ export default {
if (newValue.zipCode !== this.zipCode) { if (newValue.zipCode !== this.zipCode) {
if (!(this.selectedAppointmentType === AppointmentTypeStrings.MOBILE if (!(this.selectedAppointmentType === AppointmentTypeStrings.MOBILE
|| this.selectedAppointmentType === AppointmentTypeStrings.MOBILE_INSURANCE)) { || this.selectedAppointmentType === AppointmentTypeStrings.MOBILE_NOT_ITAC)) {
this.selectedAppointmentType = null; this.selectedAppointmentType = null;
} }
this.selectedProvider = null; this.selectedProvider = null;
@ -293,7 +293,7 @@ export default {
}, },
isMobileLocationDisplayed() { isMobileLocationDisplayed() {
return this.selectedAppointmentType === AppointmentTypeStrings.MOBILE return this.selectedAppointmentType === AppointmentTypeStrings.MOBILE
|| this.selectedAppointmentType === AppointmentTypeStrings.MOBILE_INSURANCE; || this.selectedAppointmentType === AppointmentTypeStrings.MOBILE_NOT_ITAC;
}, },
requiresInshopRecalibration() { requiresInshopRecalibration() {
// Specifically check for isRecalibrationServiceableMobile === false, not null or true. // Specifically check for isRecalibrationServiceableMobile === false, not null or true.

View file

@ -142,7 +142,7 @@ export default {
await nextTick(); await nextTick();
if (newValue !== AppointmentTypeStrings.MOBILE && newValue !== AppointmentTypeStrings.MOBILE_INSURANCE) { if (newValue !== AppointmentTypeStrings.MOBILE && newValue !== AppointmentTypeStrings.MOBILE_NOT_ITAC) {
this.getNextShopsFromList(); this.getNextShopsFromList();
} }
} }

View file

@ -195,7 +195,7 @@ export const useMainStore = defineStore({
policy: (state) => state.order.policy, policy: (state) => state.order.policy,
hasAnyNonWindshieldGlassParts: (state) => !state.order.policy.isDamageGlassOnly, hasAnyNonWindshieldGlassParts: (state) => !state.order.policy.isDamageGlassOnly,
isMobileAppointment: (state) => state.order.serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE isMobileAppointment: (state) => state.order.serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE
|| state.order.serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE_INSURANCE, || state.order.serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE_NOT_ITAC,
isDropOffAppointment: (state) => state.order.serviceLocation.appointmentType === AppointmentTypeStrings.DROP_OFF, isDropOffAppointment: (state) => state.order.serviceLocation.appointmentType === AppointmentTypeStrings.DROP_OFF,
isClaimRegistrationRequired: (state) => state.issConfig.isClaimRegistrationRequired, isClaimRegistrationRequired: (state) => state.issConfig.isClaimRegistrationRequired,
eventBusItem: (state) => (eventCategory, eventSubCategory) => { eventBusItem: (state) => (eventCategory, eventSubCategory) => {

View file

@ -1033,7 +1033,7 @@ describe('Store', () => {
// Act // Act
store.updateServiceLocation({ store.updateServiceLocation({
appointmentType: AppointmentTypeStrings.MOBILE_INSURANCE appointmentType: AppointmentTypeStrings.MOBILE_NOT_ITAC
}); });
// Assert // Assert