stripe/model/
payment_method_acss_debit.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentMethodAcssDebit {
5    ///Name of the bank associated with the bank account.
6    #[serde(skip_serializing_if = "Option::is_none")]
7    pub bank_name: Option<String>,
8    ///Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub fingerprint: Option<String>,
11    ///Institution number of the bank account.
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub institution_number: Option<String>,
14    ///Last four digits of the bank account number.
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub last4: Option<String>,
17    ///Transit number of the bank account.
18    #[serde(skip_serializing_if = "Option::is_none")]
19    pub transit_number: Option<String>,
20}
21impl std::fmt::Display for PaymentMethodAcssDebit {
22    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
23        write!(f, "{}", serde_json::to_string(self).unwrap())
24    }
25}