CSR-99 Change correlationId to referralCorrelationId
This commit is contained in:
parent
3e55448127
commit
01d4dcd3f8
2 changed files with 9 additions and 9 deletions
|
|
@ -20,7 +20,7 @@ export async function saveOrder() {
|
||||||
// Save the referral information back from the store.
|
// Save the referral information back from the store.
|
||||||
await baseMixin.methods.dispatchNonBlockingStoreAction(storeActions.SET_REFERRAL_INFORMATION, {
|
await baseMixin.methods.dispatchNonBlockingStoreAction(storeActions.SET_REFERRAL_INFORMATION, {
|
||||||
referralNumber: savedOrderInfo.data.referralNumber,
|
referralNumber: savedOrderInfo.data.referralNumber,
|
||||||
correlationId: savedOrderInfo.data.referralCorrelationId,
|
referralCorrelationId: savedOrderInfo.data.referralCorrelationId,
|
||||||
referralDate: savedOrderInfo.data.referralDate,
|
referralDate: savedOrderInfo.data.referralDate,
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
|
@ -228,13 +228,13 @@ export function getDateForSavedSessionTimeout() {
|
||||||
Calls API to load order given the referral number, referralDate, and referralCorrelationId
|
Calls API to load order given the referral number, referralDate, and referralCorrelationId
|
||||||
and returns the response.
|
and returns the response.
|
||||||
*/
|
*/
|
||||||
async function loadOrder(referralNumber, referralDate, correlationId) {
|
async function loadOrder(referralNumber, referralDate, referralCorrelationId) {
|
||||||
console.log("loading order...", referralNumber, referralDate, correlationId);
|
console.log("loading order...", referralNumber, referralDate, referralCorrelationId);
|
||||||
const response = await baseMixin.methods.dispatchNonBlockingStoreAction(storeActions.LOAD_ORDER,
|
const response = await baseMixin.methods.dispatchNonBlockingStoreAction(storeActions.LOAD_ORDER,
|
||||||
{
|
{
|
||||||
referralNumber: referralNumber.toString(),
|
referralNumber: referralNumber.toString(),
|
||||||
referralDate: referralDate,
|
referralDate: referralDate,
|
||||||
correlationId: correlationId
|
referralCorrelationId: referralCorrelationId
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
|
|
||||||
|
|
@ -174,7 +174,7 @@ export const mutations = {
|
||||||
setLoadOrderInformation(state, orderInformation) {
|
setLoadOrderInformation(state, orderInformation) {
|
||||||
state.order.referralNumber = orderInformation.referralNumber;
|
state.order.referralNumber = orderInformation.referralNumber;
|
||||||
state.order.referralDate = orderInformation.referralDate;
|
state.order.referralDate = orderInformation.referralDate;
|
||||||
state.order.referralCorrelationId = orderInformation.correlationId;
|
state.order.referralCorrelationId = orderInformation.referralCorrelationId;
|
||||||
state.order.vehicle = {
|
state.order.vehicle = {
|
||||||
year: orderInformation.vehicle?.year,
|
year: orderInformation.vehicle?.year,
|
||||||
make: orderInformation.vehicle?.make,
|
make: orderInformation.vehicle?.make,
|
||||||
|
|
@ -339,10 +339,10 @@ export const actions = {
|
||||||
},
|
},
|
||||||
|
|
||||||
// Misc 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_NUMBER, referralNumber);
|
||||||
context.commit(storeMutations.UPDATE_REFERRAL_DATE, referralDate);
|
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
|
// Parts API Actions
|
||||||
|
|
@ -383,14 +383,14 @@ export const actions = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
loadOrder(context, { referralNumber, referralDate, correlationId }) {
|
loadOrder(context, { referralNumber, referralDate, referralCorrelationId }) {
|
||||||
return globalMethods.callHttpClient({
|
return globalMethods.callHttpClient({
|
||||||
method: endpoints.LoadOrder.method,
|
method: endpoints.LoadOrder.method,
|
||||||
endpoint: endpoints.LoadOrder.url,
|
endpoint: endpoints.LoadOrder.url,
|
||||||
payload: {
|
payload: {
|
||||||
referralNumber: referralNumber,
|
referralNumber: referralNumber,
|
||||||
referralDate: referralDate,
|
referralDate: referralDate,
|
||||||
correlationId: correlationId
|
referralCorrelationId: referralCorrelationId
|
||||||
},
|
},
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
context.commit(storeMutations.SET_LOAD_CONCEPT_SESSION_INFO, response.data);
|
context.commit(storeMutations.SET_LOAD_CONCEPT_SESSION_INFO, response.data);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue