stripe/model/
issuing_authorization_merchant_data.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct IssuingAuthorizationMerchantData {
5    ///A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values.
6    pub category: String,
7    ///The merchant category code for the seller’s business
8    pub category_code: String,
9    ///City where the seller is located
10    #[serde(skip_serializing_if = "Option::is_none")]
11    pub city: Option<String>,
12    ///Country where the seller is located
13    #[serde(skip_serializing_if = "Option::is_none")]
14    pub country: Option<String>,
15    ///Name of the seller
16    #[serde(skip_serializing_if = "Option::is_none")]
17    pub name: Option<String>,
18    ///Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.
19    pub network_id: String,
20    ///Postal code where the seller is located
21    #[serde(skip_serializing_if = "Option::is_none")]
22    pub postal_code: Option<String>,
23    ///State where the seller is located
24    #[serde(skip_serializing_if = "Option::is_none")]
25    pub state: Option<String>,
26    ///An ID assigned by the seller to the location of the sale.
27    #[serde(skip_serializing_if = "Option::is_none")]
28    pub terminal_id: Option<String>,
29    ///URL provided by the merchant on a 3DS request
30    #[serde(skip_serializing_if = "Option::is_none")]
31    pub url: Option<String>,
32}
33impl std::fmt::Display for IssuingAuthorizationMerchantData {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
35        write!(f, "{}", serde_json::to_string(self).unwrap())
36    }
37}