Skip to content

Commit

Permalink
fix: onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayg10 committed Sep 23, 2024
1 parent f0e894d commit b26831e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@
"const jsonData = pm.response.body",
"console.log(jsonData)",
"for(var i in jsonData) {",
" if(jsonData[i].ledgerAccountType === 'SETTLEMENT' && jsonData[i].currency === pm.environment.get('currency2')) {",
" if(jsonData[i].ledgerAccountType === 'SETTLEMENT' && jsonData[i].currency === pm.environment.get('FX_TARGET_CURRENCY')) {",
" pm.environment.set(\"ttkfxp1Currency2SettlementAccountId\", jsonData[i].id)",
" pm.environment.set(\"ttkfxp1Currency2SettlementAccountBalanceBeforeFundsIn\", jsonData[i].value)",
" }",
Expand Down Expand Up @@ -1409,7 +1409,7 @@
" let isOk = false;",
" ",
" for(var i in jsonData) {",
" if(jsonData[i].ledgerAccountType === 'SETTLEMENT' && jsonData[i].currency === pm.environment.get('currency2') && Number.parseFloat(jsonData[i].value) == expectedBalance) {",
" if(jsonData[i].ledgerAccountType === 'SETTLEMENT' && jsonData[i].currency === pm.environment.get('FX_TARGET_CURRENCY') && Number.parseFloat(jsonData[i].value) == expectedBalance) {",
" pm.environment.set(\"ttkfxp1Currency2SettlementAccountBalanceAfterFundsIn\", jsonData[i].value)",
" isOk = true",
" }",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@
"const jsonData = pm.response.body",
"console.log(jsonData)",
"for(var i in jsonData) {",
" if(jsonData[i].ledgerAccountType === 'SETTLEMENT' && jsonData[i].currency === pm.environment.get('currency')) {",
" if(jsonData[i].ledgerAccountType === 'SETTLEMENT' && jsonData[i].currency === pm.environment.get('FX_SOURCE_CURRENCY')) {",
" pm.environment.set(\"ttkfxpayerSettlementAccountId\", jsonData[i].id)",
" pm.environment.set(\"ttkfxpayerSettlementAccountBalanceBeforeFundsIn\", jsonData[i].value)",
" }",
Expand Down Expand Up @@ -1317,7 +1317,7 @@
" let isOk = false;",
" ",
" for(var i in jsonData) {",
" if(jsonData[i].ledgerAccountType === 'SETTLEMENT' && jsonData[i].currency === pm.environment.get('currency') && jsonData[i].value == expectedBalance) {",
" if(jsonData[i].ledgerAccountType === 'SETTLEMENT' && jsonData[i].currency === pm.environment.get('FX_SOURCE_CURRENCY') && jsonData[i].value == expectedBalance) {",
" pm.environment.set(\"ttkfxpayerSettlementAccountBalanceAfterFundsIn\", jsonData[i].value)",
" isOk = true",
" }",
Expand Down

0 comments on commit b26831e

Please sign in to comment.