CSR-99 Change correlationId to referralCorrelationId

This commit is contained in:
Katie 2022-03-24 15:54:34 -04:00
parent 3e55448127
commit 01d4dcd3f8
2 changed files with 9 additions and 9 deletions

View file

@ -20,7 +20,7 @@ export async function saveOrder() {
// Save the referral information back from the store.
await baseMixin.methods.dispatchNonBlockingStoreAction(storeActions.SET_REFERRAL_INFORMATION, {
referralNumber: savedOrderInfo.data.referralNumber,
correlationId: savedOrderInfo.data.referralCorrelationId,
referralCorrelationId: savedOrderInfo.data.referralCorrelationId,
referralDate: savedOrderInfo.data.referralDate,
}, false);
@ -228,13 +228,13 @@ export function getDateForSavedSessionTimeout() {
Calls API to load order given the referral number, referralDate, and referralCorrelationId
and returns the response.
*/
async function loadOrder(referralNumber, referralDate, correlationId) {
console.log("loading order...", referralNumber, referralDate, correlationId);
async function loadOrder(referralNumber, referralDate, referralCorrelationId) {
console.log("loading order...", referralNumber, referralDate, referralCorrelationId);
const response = await baseMixin.methods.dispatchNonBlockingStoreAction(storeActions.LOAD_ORDER,
{
referralNumber: referralNumber.toString(),
referralDate: referralDate,
correlationId: correlationId
referralCorrelationId: referralCorrelationId
}, false);
return response;

View file

@ -174,7 +174,7 @@ export const mutations = {
setLoadOrderInformation(state, orderInformation) {
state.order.referralNumber = orderInformation.referralNumber;
state.order.referralDate = orderInformation.referralDate;
state.order.referralCorrelationId = orderInformation.correlationId;
state.order.referralCorrelationId = orderInformation.referralCorrelationId;
state.order.vehicle = {
year: orderInformation.vehicle?.year,
make: orderInformation.vehicle?.make,
@ -339,10 +339,10 @@ export const actions = {
},
// Misc Actions
setReferralInformation(context, { referralNumber, referralDate, correlationId }) {
setReferralInformation(context, { referralNumber, referralDate, referralCorrelationId }) {
context.commit(storeMutations.UPDATE_REFERRAL_NUMBER, referralNumber);
context.commit(storeMutations.UPDATE_REFERRAL_DATE, referralDate);
context.commit(storeMutations.UPDATE_REFERRAL_CORRELATION_ID, correlationId);
context.commit(storeMutations.UPDATE_REFERRAL_CORRELATION_ID, referralCorrelationId);
},
// Parts API Actions
@ -383,14 +383,14 @@ export const actions = {
});
},
loadOrder(context, { referralNumber, referralDate, correlationId }) {
loadOrder(context, { referralNumber, referralDate, referralCorrelationId }) {
return globalMethods.callHttpClient({
method: endpoints.LoadOrder.method,
endpoint: endpoints.LoadOrder.url,
payload: {
referralNumber: referralNumber,
referralDate: referralDate,
correlationId: correlationId
referralCorrelationId: referralCorrelationId
},
}).then((response) => {
context.commit(storeMutations.SET_LOAD_CONCEPT_SESSION_INFO, response.data);