diff --git a/src/store/index.js b/src/store/index.js index b8e5862b..dabe3fb3 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1371,6 +1371,17 @@ export const useMainStore = defineStore({ }, (error) => reject(error)); }); }, + /** + * @function getCookieValueByName + * @param {object} payload + * referralNumber: the sv2 referral's referralNumber + * responseDate: the sv2 referral's referralDate or the responseDate associated with the returned duplicate-check record + * parentAccountNumber: the client's parentAccountNumber associated with the sv2 referral + * correlationId: the correlationId associated with the sv2 referral + * @summary + * Gets cookie value by name, returns empty string if not found. + * @returns {object} returns the response object for the load session api, which returns the sv2 referral information + */ async getReferralByPayload(payload) { return await globalMethods.callHttpClient({ method: endpoints.LoadSession.method,