paypal_rust/resources/network_transaction_reference.rs
1use crate::resources::enums::network::Network;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Debug, Default, Deserialize, Serialize)]
5pub struct NetworkTransactionReference {
6 /// Transaction reference id returned by the scheme. For Visa and Amex, this is the "Tran id" field in response. For MasterCard,
7 /// this is the "BankNet reference id" field in response. For Discover, this is the "NRID" field in response.
8 pub id: String,
9
10 /// The date that the transaction was authorized by the scheme. For MasterCard, this is the "BankNet reference date" field in response.
11 #[serde(skip_serializing_if = "Option::is_none")]
12 pub date: Option<String>,
13
14 /// Name of the card network through which the transaction was routed.
15 pub network: Network,
16}