CSR-2117
This commit is contained in:
parent
ed50076e40
commit
ab1b27d3fa
4 changed files with 17 additions and 1 deletions
|
|
@ -93,6 +93,7 @@ const storeActions = {
|
||||||
SAVE_CCTOKEN: "saveCCToken",
|
SAVE_CCTOKEN: "saveCCToken",
|
||||||
SAVE_PAYPAL_TOKEN: "savePaypalToken",
|
SAVE_PAYPAL_TOKEN: "savePaypalToken",
|
||||||
SAVE_NEXTGEN_SETTLED_AMOUNT: "saveNextGenSettledAmount",
|
SAVE_NEXTGEN_SETTLED_AMOUNT: "saveNextGenSettledAmount",
|
||||||
|
SAVE_IS_RECAL_ACK_OPT_IN: "saveIsRecalAckOptIn",
|
||||||
|
|
||||||
CREATE_SUBMITTED_ORDER: "createSubmittedOrder",
|
CREATE_SUBMITTED_ORDER: "createSubmittedOrder",
|
||||||
RESET_SUBMITTED_ORDER: "resetSubmittedOrder",
|
RESET_SUBMITTED_ORDER: "resetSubmittedOrder",
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ const storeMutations = {
|
||||||
LOCK_TOKEN: "updateLockToken",
|
LOCK_TOKEN: "updateLockToken",
|
||||||
UPDATE_SETTLED_TENDER_AMOUNT: "updateSettledTenderAmount",
|
UPDATE_SETTLED_TENDER_AMOUNT: "updateSettledTenderAmount",
|
||||||
UPDATE_IS_LEAD_GEN: "updateIsLeadGen",
|
UPDATE_IS_LEAD_GEN: "updateIsLeadGen",
|
||||||
|
UPDATE_IS_RECAL_ACK_OPT_IN: "updateIsRecalAckOptIn",
|
||||||
|
|
||||||
// EVENT BUS MUTATIONS
|
// EVENT BUS MUTATIONS
|
||||||
ADD_EVENT_TO_BUS: "addEventToBus",
|
ADD_EVENT_TO_BUS: "addEventToBus",
|
||||||
|
|
|
||||||
|
|
@ -345,7 +345,7 @@ export default {
|
||||||
availableVaps: [],
|
availableVaps: [],
|
||||||
paymentMethodInternalModel: this.getPaymentMethodFromStore(),
|
paymentMethodInternalModel: this.getPaymentMethodFromStore(),
|
||||||
inactivePromos: this.getInactivePromosFromStore(),
|
inactivePromos: this.getInactivePromosFromStore(),
|
||||||
isRecalAckOptIn: false,
|
isRecalAckOptIn: this.getIsRecalAckOptInFromStore(),
|
||||||
forwardClicked: false, // this prevents the pia disclaimer from showing when switching to insurance and nav forward
|
forwardClicked: false, // this prevents the pia disclaimer from showing when switching to insurance and nav forward
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
@ -485,6 +485,9 @@ export default {
|
||||||
|
|
||||||
this.$refs.loadingModal.hideModal();
|
this.$refs.loadingModal.hideModal();
|
||||||
},
|
},
|
||||||
|
getIsRecalAckOptInFromStore() {
|
||||||
|
return this.$store.getters.order.isRecalAckOptIn;
|
||||||
|
},
|
||||||
backButtonAction() {
|
backButtonAction() {
|
||||||
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
|
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
|
||||||
},
|
},
|
||||||
|
|
@ -516,6 +519,7 @@ export default {
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
this.dispatchStoreAction(storeActions.SAVE_IS_RECAL_ACK_OPT_IN, this.isRecalAckOptIn);
|
||||||
if (this.paymentMethod == paymentMethods.LATER) {
|
if (this.paymentMethod == paymentMethods.LATER) {
|
||||||
// this creates the final work order
|
// this creates the final work order
|
||||||
await submitWorkOrder({ pageNameToLog: "payment-method", submitAfterSave: true });
|
await submitWorkOrder({ pageNameToLog: "payment-method", submitAfterSave: true });
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,7 @@ const getDefaultState = () => {
|
||||||
customerPortalLoginToken: null,
|
customerPortalLoginToken: null,
|
||||||
lockToken: null,
|
lockToken: null,
|
||||||
settledTenderAmount: 0,
|
settledTenderAmount: 0,
|
||||||
|
isRecalAckOptIn: false,
|
||||||
},
|
},
|
||||||
applicationUser: {
|
applicationUser: {
|
||||||
eventBus: [],
|
eventBus: [],
|
||||||
|
|
@ -294,6 +295,9 @@ export const mutations = {
|
||||||
updateSettledTenderAmount(state, settledTenderAmount) {
|
updateSettledTenderAmount(state, settledTenderAmount) {
|
||||||
state.order.settledTenderAmount = settledTenderAmount;
|
state.order.settledTenderAmount = settledTenderAmount;
|
||||||
},
|
},
|
||||||
|
updateIsRecalAckOptIn(state, isRecalAckOptIn) {
|
||||||
|
state.order.isRecalAckOptIn = isRecalAckOptIn;
|
||||||
|
},
|
||||||
updateCCToken(state, ccToken) {
|
updateCCToken(state, ccToken) {
|
||||||
state.order.payment.ccToken.subscriptionId = ccToken.subscriptionId;
|
state.order.payment.ccToken.subscriptionId = ccToken.subscriptionId;
|
||||||
state.order.payment.ccToken.expMonth = ccToken.expMonth;
|
state.order.payment.ccToken.expMonth = ccToken.expMonth;
|
||||||
|
|
@ -591,6 +595,7 @@ export const mutations = {
|
||||||
state.order.referralCorrelationId = sessionInformation.order.referralCorrelationId;
|
state.order.referralCorrelationId = sessionInformation.order.referralCorrelationId;
|
||||||
state.order.eon = sessionInformation.order.eon;
|
state.order.eon = sessionInformation.order.eon;
|
||||||
state.order.customerPortalLoginToken = sessionInformation.order.CustomerPortalLoginToken;
|
state.order.customerPortalLoginToken = sessionInformation.order.CustomerPortalLoginToken;
|
||||||
|
state.order.isRecalAckOptIn = sessionInformation.order.isRecalAckOptIn;
|
||||||
|
|
||||||
if (state.order.vehicle.vin !== sessionInformation.order.vehicle?.vin) {
|
if (state.order.vehicle.vin !== sessionInformation.order.vehicle?.vin) {
|
||||||
state.applicationUser.pageData[fmgPageValues.PART_QUESTIONS] = null;
|
state.applicationUser.pageData[fmgPageValues.PART_QUESTIONS] = null;
|
||||||
|
|
@ -1925,6 +1930,7 @@ export const actions = {
|
||||||
eon: order.eon,
|
eon: order.eon,
|
||||||
createDeleteStatusWorkOrderForPia: createDeleteStatusWorkOrderForPia,
|
createDeleteStatusWorkOrderForPia: createDeleteStatusWorkOrderForPia,
|
||||||
lockToken: order.lockToken,
|
lockToken: order.lockToken,
|
||||||
|
isRecalAckOptIn: order.isRecalAckOptIn,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
logApiCall: true,
|
logApiCall: true,
|
||||||
|
|
@ -2310,6 +2316,10 @@ export const actions = {
|
||||||
context.commit(storeMutations.UPDATE_PIA_TYPE, isPia ? paymentMethod : null);
|
context.commit(storeMutations.UPDATE_PIA_TYPE, isPia ? paymentMethod : null);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
saveIsRecalAckOptIn(context, isRecalAckOptIn) {
|
||||||
|
context.commit(storeMutations.UPDATE_IS_RECAL_ACK_OPT_IN, isRecalAckOptIn);
|
||||||
|
},
|
||||||
|
|
||||||
saveParentAccountNumber(context, parentAccountNumber) {
|
saveParentAccountNumber(context, parentAccountNumber) {
|
||||||
context.commit(storeMutations.UPDATE_PARENT_ACCT_NUMBER, parentAccountNumber);
|
context.commit(storeMutations.UPDATE_PARENT_ACCT_NUMBER, parentAccountNumber);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue