Skip to content

Commit

Permalink
generate 4 parameter added
Browse files Browse the repository at this point in the history
  • Loading branch information
Sm1pleScr1pt committed Oct 9, 2024
1 parent a4c4d6a commit f9a6aef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions blocks/applyloanform/loanformapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions blocks/whatsappservice/otppopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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";
Expand Down

0 comments on commit f9a6aef

Please sign in to comment.