stripe/model/
source_code_verification_flow.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct SourceCodeVerificationFlow {
5    ///The number of attempts remaining to authenticate the source object with a verification code.
6    pub attempts_remaining: i64,
7    ///The status of the code verification, either `pending` (awaiting verification, `attempts_remaining` should be greater than 0), `succeeded` (successful verification) or `failed` (failed verification, cannot be verified anymore as `attempts_remaining` should be 0).
8    pub status: String,
9}
10impl std::fmt::Display for SourceCodeVerificationFlow {
11    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
12        write!(f, "{}", serde_json::to_string(self).unwrap())
13    }
14}