stripe/model/
payment_method_cashapp.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentMethodCashapp {
5    ///A unique and immutable identifier assigned by Cash App to every buyer.
6    #[serde(skip_serializing_if = "Option::is_none")]
7    pub buyer_id: Option<String>,
8    ///A public identifier for buyers using Cash App.
9    #[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}