plaid/model/risk_check_behavior.rs
1use serde::{Serialize, Deserialize};
2use super::{
3 RiskCheckBehaviorBotDetectedLabel, RiskCheckBehaviorFraudRingDetectedLabel,
4 RiskCheckBehaviorUserInteractionsLabel,
5};
6///Result summary object specifying values for `behavior` attributes of risk check, when available.
7#[derive(Debug, Clone, Serialize, Deserialize)]
8pub struct RiskCheckBehavior {
9 /**Field describing the outcome of a bot detection behavior risk check.
10
11`yes` indicates that automated activity was detected.
12
13`no` indicates that automated activity was not detected.
14
15`no_data` indicates there was not enough information available to give an accurate signal.*/
16 pub bot_detected: RiskCheckBehaviorBotDetectedLabel,
17 /**Field describing the outcome of a fraud ring behavior risk check.
18
19`yes` indicates that fraud ring activity was detected.
20
21`no` indicates that fraud ring activity was not detected.
22
23`no_data` indicates there was not enough information available to give an accurate signal.*/
24 pub fraud_ring_detected: RiskCheckBehaviorFraudRingDetectedLabel,
25 /**Field describing the overall user interaction signals of a behavior risk check. This value represents how familiar the user is with the personal data they provide, based on a number of signals that are collected during their session.
26
27`genuine` indicates the user has high familiarity with the data they are providing, and that fraud is unlikely.
28
29`neutral` indicates some signals are present in between `risky` and `genuine`, but there are not enough clear signals to determine an outcome.
30
31`risky` indicates the user has low familiarity with the data they are providing, and that fraud is likely.
32
33`no_data` indicates there is not sufficient information to give an accurate signal.*/
34 pub user_interactions: RiskCheckBehaviorUserInteractionsLabel,
35}
36impl std::fmt::Display for RiskCheckBehavior {
37 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
38 write!(f, "{}", serde_json::to_string(self).unwrap())
39 }
40}