stripe/model/
payment_method_bacs_debit.rs

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