stripe/model/payment_method_sofort.rs
1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentMethodSofort {
5 ///Two-letter ISO code representing the country the bank account is located in.
6 #[serde(skip_serializing_if = "Option::is_none")]
7 pub country: Option<String>,
8}
9impl std::fmt::Display for PaymentMethodSofort {
10 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
11 write!(f, "{}", serde_json::to_string(self).unwrap())
12 }
13}