stripe/model/
payment_method_paypal.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentMethodPaypal {
5    /**Owner's email. Values are provided by PayPal directly
6(if supported) at the time of authorization or settlement. They cannot be set or mutated.*/
7    #[serde(skip_serializing_if = "Option::is_none")]
8    pub payer_email: Option<String>,
9    ///PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
10    #[serde(skip_serializing_if = "Option::is_none")]
11    pub payer_id: Option<String>,
12}
13impl std::fmt::Display for PaymentMethodPaypal {
14    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
15        write!(f, "{}", serde_json::to_string(self).unwrap())
16    }
17}