stripe/model/
issuing_network_token_visa.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct IssuingNetworkTokenVisa {
5    ///A unique reference ID from Visa to represent the card account number.
6    pub card_reference_id: String,
7    ///The network-unique identifier for the token.
8    pub token_reference_id: String,
9    ///The ID of the entity requesting tokenization, specific to Visa.
10    pub token_requestor_id: String,
11    ///Degree of risk associated with the token between `01` and `99`, with higher number indicating higher risk. A `00` value indicates the token was not scored by Visa.
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub token_risk_score: Option<String>,
14}
15impl std::fmt::Display for IssuingNetworkTokenVisa {
16    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
17        write!(f, "{}", serde_json::to_string(self).unwrap())
18    }
19}