Skip to content

Commit

Permalink
Merge branch 'master' into change-date-to-number
Browse files Browse the repository at this point in the history
  • Loading branch information
johanfol authored Jan 25, 2021
2 parents 718413d + 67517cf commit b82cdeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion typology-11/src/scoring-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ const handleScores = (scores: any, topic: string, TransactionID: string, transac
+ (scores.rule86 ? 0.25 : 0)
+ (scores.rule87 ? 0.25 : 0);

publish(topic, `"typology":"typology-11","transactionID":"${TransactionID}","score":"${score}","createDate":${transactionDate},

publish(topic, `"typology":"typology-11","transactionID":"${TransactionID}","score":${score},"createDate":${transactionDate},
"textResult":"Typology 11 score is ${score}, Reason: ${
+ (scores.rule17 ? 'Transaction Divergence, ' : '')
+ (scores.rule27 ? 'Transaction Mirroring, ' : '')
Expand Down
2 changes: 1 addition & 1 deletion typology-214/src/scoring-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const handleScores = (scores: any, topic: string, TransactionID: string, transac
+ (scores.rule48 ? 0.2 : 0)
+ (scores.rule78 ? 0.2 : 0);

publish(topic, `"typology":"typology-214","transactionID":"${TransactionID}","score":"${score}","createDate":${transactionDate},
publish(topic, `"typology":"typology-214","transactionID":"${TransactionID}","score":${score},"createDate":${transactionDate},
"textResult":"Typology 214 score is ${score}, Reason: ${(scores.rule3 ? 'Account Dormancy - Payee, ' : '')
+ (scores.rule12 ? 'Party Type Individual, ' : '')
+ (scores.rule27 ? 'Transaction Mirroring, ' : '')
Expand Down

0 comments on commit b82cdeb

Please sign in to comment.