plaid/model/identity_verification_step_summary.rs
1use serde::{Serialize, Deserialize};
2use super::IdentityVerificationStepStatus;
3/**Each step will be one of the following values:
4
5
6`active` - This step is the user's current step. They are either in the process of completing this step, or they recently closed their Identity Verification attempt while in the middle of this step. Only one step will be marked as `active` at any given point.
7
8`success` - The Identity Verification attempt has completed this step.
9
10`failed` - The user failed this step. This can either call the user to fail the session as a whole, or cause them to fallback to another step depending on how the Identity Verification template is configured. A failed step does not imply a failed session.
11
12`waiting_for_prerequisite` - The user needs to complete another step first, before they progress to this step. This step may never run, depending on if the user fails an earlier step or if the step is only run as a fallback.
13
14`not_applicable` - This step will not be run for this session.
15
16`skipped` - The retry instructions that created this Identity Verification attempt specified that this step should be skipped.
17
18`expired` - This step had not yet been completed when the Identity Verification attempt as a whole expired.
19
20`canceled` - The Identity Verification attempt was canceled before the user completed this step.
21
22`pending_review` - The Identity Verification attempt template was configured to perform a screening that had one or more hits needing review.
23
24`manually_approved` - The step was manually overridden to pass by a team member in the dashboard.
25
26`manually_rejected` - The step was manually overridden to fail by a team member in the dashboard.*/
27#[derive(Debug, Clone, Serialize, Deserialize)]
28pub struct IdentityVerificationStepSummary {
29 ///The status of a step in the Identity Verification process.
30 pub accept_tos: IdentityVerificationStepStatus,
31 ///The status of a step in the Identity Verification process.
32 pub documentary_verification: IdentityVerificationStepStatus,
33 ///The status of a step in the Identity Verification process.
34 pub kyc_check: IdentityVerificationStepStatus,
35 ///The status of a step in the Identity Verification process.
36 pub risk_check: IdentityVerificationStepStatus,
37 ///The status of a step in the Identity Verification process.
38 pub selfie_check: IdentityVerificationStepStatus,
39 ///The status of a step in the Identity Verification process.
40 pub verify_sms: IdentityVerificationStepStatus,
41 ///The status of a step in the Identity Verification process.
42 pub watchlist_screening: IdentityVerificationStepStatus,
43}
44impl std::fmt::Display for IdentityVerificationStepSummary {
45 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
46 write!(f, "{}", serde_json::to_string(self).unwrap())
47 }
48}