stripe/model/
payment_method_cashapp.rs1use serde::{Serialize, Deserialize};
2#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentMethodCashapp {
5 #[serde(skip_serializing_if = "Option::is_none")]
7 pub buyer_id: Option<String>,
8 #[serde(skip_serializing_if = "Option::is_none")]
10 pub cashtag: Option<String>,
11}
12impl std::fmt::Display for PaymentMethodCashapp {
13 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
14 write!(f, "{}", serde_json::to_string(self).unwrap())
15 }
16}