stripe/model/
payment_method_us_bank_account.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentMethodUsBankAccount {
5    ///Account holder type: individual or company.
6    #[serde(skip_serializing_if = "Option::is_none")]
7    pub account_holder_type: Option<String>,
8    ///Account type: checkings or savings. Defaults to checking if omitted.
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub account_type: Option<String>,
11    ///The name of the bank.
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub bank_name: Option<String>,
14    ///The ID of the Financial Connections Account used to create the payment method.
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub financial_connections_account: Option<String>,
17    ///Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
18    #[serde(skip_serializing_if = "Option::is_none")]
19    pub fingerprint: Option<String>,
20    ///Last four digits of the bank account number.
21    #[serde(skip_serializing_if = "Option::is_none")]
22    pub last4: Option<String>,
23    ///Contains information about US bank account networks that can be used.
24    #[serde(skip_serializing_if = "Option::is_none")]
25    pub networks: Option<serde_json::Value>,
26    ///Routing number of the bank account.
27    #[serde(skip_serializing_if = "Option::is_none")]
28    pub routing_number: Option<String>,
29    ///Contains information about the future reusability of this PaymentMethod.
30    #[serde(skip_serializing_if = "Option::is_none")]
31    pub status_details: Option<serde_json::Value>,
32}
33impl std::fmt::Display for PaymentMethodUsBankAccount {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
35        write!(f, "{}", serde_json::to_string(self).unwrap())
36    }
37}