From f9a6aef8f4d8b1e97e1bced3edbce3ada9b0db58 Mon Sep 17 00:00:00 2001 From: Smit Shah Date: Wed, 9 Oct 2024 19:25:02 +0530 Subject: [PATCH] generate 4 parameter added --- blocks/applyloanform/loanformapi.js | 6 +++--- blocks/whatsappservice/otppopup.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/blocks/applyloanform/loanformapi.js b/blocks/applyloanform/loanformapi.js index 9656c25a00..942e181e29 100644 --- a/blocks/applyloanform/loanformapi.js +++ b/blocks/applyloanform/loanformapi.js @@ -93,11 +93,11 @@ export function AccessTokenAPI() { }); } -export function generateOTPAPI(access_token, mobileno, productName) { +export function generateOTPAPI(access_token, mobileno, productName, source) { let requesObj = { requestJson: { "mobileno": mobileno, - "source": "External", + "source": source, "productName": productName }, "headerJson": { @@ -252,7 +252,7 @@ export function resendOtpAPI(loanProduct) { export function workFlow() { getAccessToken() .then(accesstoken => { - return generateOTPAPI(accesstoken, cutomerNo().value, loanProduct().dataset.loanType) + return generateOTPAPI(accesstoken, cutomerNo().value, loanProduct().dataset.loanType, "Leadform"); }) .then(function () { //console.log("Data inserted successfully"); diff --git a/blocks/whatsappservice/otppopup.js b/blocks/whatsappservice/otppopup.js index 46c50b36ef..19d55fb6de 100644 --- a/blocks/whatsappservice/otppopup.js +++ b/blocks/whatsappservice/otppopup.js @@ -29,7 +29,7 @@ export function otpPopupCall(block) { addLoaderWithBlur(); 1 afterGenerateOtp(); getAccessToken().then((accesstoken) => { - generateOTPAPI(accesstoken, mobileNumber, "Whatsapp").then(function (response) { + generateOTPAPI(accesstoken, mobileNumber, "Whatsapp", "Whatsapp").then(function (response) { if (response.returnResponse.statusCode == 100) { removeLoader(); } @@ -45,7 +45,7 @@ export function otpPopupCall(block) { if (otpStage.atWhichStage == "generateOtp") { afterGenerateOtp(); getAccessToken().then((accesstoken) => { - generateOTPAPI(accesstoken, mobileNumber, "Whatsapp").then(function (response) { + generateOTPAPI(accesstoken, mobileNumber, "Whatsapp", "Whatsapp").then(function (response) { if (response.returnResponse.statusCode == 100) { removeLoader(); document.querySelector(".failedContainer").style.display = "none";