plaid/model/
fallback_auth_microdeposit_verification_expired_webhook.rs

1use serde::{Serialize, Deserialize};
2use super::WebhookEnvironmentValues;
3///Fires when an account has an expired verification when using micro-deposits
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct FallbackAuthMicrodepositVerificationExpiredWebhook {
6    ///The external account ID associated with the micro-deposit
7    pub account_id: String,
8    ///The Plaid environment the webhook was sent from
9    pub environment: WebhookEnvironmentValues,
10    ///The error code associated with the webhook.
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub error: Option<String>,
13    ///The `item_id` of the Item associated with this webhook, warning, or error
14    pub item_id: String,
15    ///`VERIFICATION_EXPIRED`
16    pub webhook_code: String,
17    ///`AUTH`
18    pub webhook_type: String,
19}
20impl std::fmt::Display for FallbackAuthMicrodepositVerificationExpiredWebhook {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
22        write!(f, "{}", serde_json::to_string(self).unwrap())
23    }
24}