update value for transaction id
This commit is contained in:
parent
ac0423323e
commit
4be0809a72
3 changed files with 6 additions and 3 deletions
|
|
@ -60,7 +60,7 @@ export default {
|
||||||
const headers = {
|
const headers = {
|
||||||
[headerKeys.EXPERIMENT]: JSON.stringify(store.experimentSettings),
|
[headerKeys.EXPERIMENT]: JSON.stringify(store.experimentSettings),
|
||||||
[headerKeys.APPLICATION_NAME]: applicationConfig.APPLICATION_NAME,
|
[headerKeys.APPLICATION_NAME]: applicationConfig.APPLICATION_NAME,
|
||||||
[headerKeys.TRANSACTION_ID]: store.order.referralCorrelationId,
|
[headerKeys.TRANSACTION_ID]: crypto.randomUUID(),
|
||||||
[headerKeys.ENTERPRISE_ORDER_NUMBER]: store.order.eon,
|
[headerKeys.ENTERPRISE_ORDER_NUMBER]: store.order.eon,
|
||||||
[headerKeys.REFERRAL_SEQUENCE_NUMBER]: store.order.referralSequenceNumber,
|
[headerKeys.REFERRAL_SEQUENCE_NUMBER]: store.order.referralSequenceNumber,
|
||||||
[headerKeys.SESSION_SEQUENCE_NUMBER]: sessionKey
|
[headerKeys.SESSION_SEQUENCE_NUMBER]: sessionKey
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,19 @@ import axios from 'axios';
|
||||||
import globalMethods from '@/global-methods';
|
import globalMethods from '@/global-methods';
|
||||||
import analyticsMixIn from '@/mixins/analytics-mixin';
|
import analyticsMixIn from '@/mixins/analytics-mixin';
|
||||||
import { getMountOptions } from '@/helpers/unit-test-helper.js';
|
import { getMountOptions } from '@/helpers/unit-test-helper.js';
|
||||||
|
import crypto from 'crypto';
|
||||||
|
|
||||||
// Mock external dependencies
|
// Mock external dependencies
|
||||||
jest.mock('axios');
|
jest.mock('axios');
|
||||||
jest.mock('@/mixins/analytics-mixin');
|
jest.mock('@/mixins/analytics-mixin');
|
||||||
|
|
||||||
|
global.crypto = crypto;
|
||||||
|
|
||||||
global.$logger = {
|
global.$logger = {
|
||||||
logInformation: jest.fn(),
|
logInformation: jest.fn(),
|
||||||
logWarning: jest.fn(),
|
logWarning: jest.fn(),
|
||||||
logError: jest.fn(),
|
logError: jest.fn(),
|
||||||
logCritical: jest.fn(),
|
logCritical: jest.fn()
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @ignore */
|
/** @ignore */
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ export class Logger {
|
||||||
const headers = {
|
const headers = {
|
||||||
[headerKeys.EXPERIMENT]: JSON.stringify(store.experimentSettings),
|
[headerKeys.EXPERIMENT]: JSON.stringify(store.experimentSettings),
|
||||||
[headerKeys.APPLICATION_NAME]: applicationConfig.APPLICATION_NAME,
|
[headerKeys.APPLICATION_NAME]: applicationConfig.APPLICATION_NAME,
|
||||||
[headerKeys.TRANSACTION_ID]: store.order.referralCorrelationId,
|
[headerKeys.TRANSACTION_ID]: crypto.randomUUID(),
|
||||||
[headerKeys.ENTERPRISE_ORDER_NUMBER]: store.order.eon,
|
[headerKeys.ENTERPRISE_ORDER_NUMBER]: store.order.eon,
|
||||||
[headerKeys.REFERRAL_SEQUENCE_NUMBER]: store.order.referralSequenceNumber,
|
[headerKeys.REFERRAL_SEQUENCE_NUMBER]: store.order.referralSequenceNumber,
|
||||||
[headerKeys.SESSION_SEQUENCE_NUMBER]: sessionKey
|
[headerKeys.SESSION_SEQUENCE_NUMBER]: sessionKey
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue