stripe/model/
payment_method_ideal.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentMethodIdeal {
5    ///The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
6    #[serde(skip_serializing_if = "Option::is_none")]
7    pub bank: Option<String>,
8    ///The Bank Identifier Code of the customer's bank, if the bank was provided.
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub bic: Option<String>,
11}
12impl std::fmt::Display for PaymentMethodIdeal {
13    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
14        write!(f, "{}", serde_json::to_string(self).unwrap())
15    }
16}