square_api_client/models/risk_evaluation.rs
1//! Model struct for RiskEvaluation type.
2
3use serde::{Deserialize, Serialize};
4
5use super::{enums::RiskEvaluationRiskLevel, DateTime};
6
7/// Represents fraud risk information for the associated payment.
8///
9/// When you take a payment through Square's Payments API (using the `CreatePayment` endpoint),
10/// Square evaluates it and assigns a risk level to the payment. Sellers can use this information to
11/// determine the course of action (for example, provide the goods/services or refund the payment).
12#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
13pub struct RiskEvaluation {
14 /// Read only The timestamp when payment risk was evaluated.
15 pub created_at: Option<DateTime>,
16 /// The risk level associated with the payment.
17 pub risk_level: Option<RiskEvaluationRiskLevel>,
18}