stripe/model/
issuing_network_token_mastercard.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct IssuingNetworkTokenMastercard {
5    ///A unique reference ID from MasterCard to represent the card account number.
6    #[serde(skip_serializing_if = "Option::is_none")]
7    pub card_reference_id: Option<String>,
8    ///The network-unique identifier for the token.
9    pub token_reference_id: String,
10    ///The ID of the entity requesting tokenization, specific to MasterCard.
11    pub token_requestor_id: String,
12    ///The name of the entity requesting tokenization, if known. This is directly provided from MasterCard.
13    #[serde(skip_serializing_if = "Option::is_none")]
14    pub token_requestor_name: Option<String>,
15}
16impl std::fmt::Display for IssuingNetworkTokenMastercard {
17    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
18        write!(f, "{}", serde_json::to_string(self).unwrap())
19    }
20}