stripe/model/
payment_method_sepa_debit.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentMethodSepaDebit {
5    ///Bank code of bank associated with the bank account.
6    #[serde(skip_serializing_if = "Option::is_none")]
7    pub bank_code: Option<String>,
8    ///Branch code of bank associated with the bank account.
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub branch_code: Option<String>,
11    ///Two-letter ISO code representing the country the bank account is located in.
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub country: Option<String>,
14    ///Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub fingerprint: Option<String>,
17    ///Information about the object that generated this PaymentMethod.
18    #[serde(skip_serializing_if = "Option::is_none")]
19    pub generated_from: Option<serde_json::Value>,
20    ///Last four characters of the IBAN.
21    #[serde(skip_serializing_if = "Option::is_none")]
22    pub last4: Option<String>,
23}
24impl std::fmt::Display for PaymentMethodSepaDebit {
25    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
26        write!(f, "{}", serde_json::to_string(self).unwrap())
27    }
28}