stripe/model/
source_mandate_notification_sepa_debit_data.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct SourceMandateNotificationSepaDebitData {
5    ///SEPA creditor ID.
6    #[serde(skip_serializing_if = "Option::is_none")]
7    pub creditor_identifier: Option<String>,
8    ///Last 4 digits of the account number associated with the debit.
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub last4: Option<String>,
11    ///Mandate reference associated with the debit.
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub mandate_reference: Option<String>,
14}
15impl std::fmt::Display for SourceMandateNotificationSepaDebitData {
16    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
17        write!(f, "{}", serde_json::to_string(self).unwrap())
18    }
19}