stripe/resources/generated/
shipping.rs

1// ======================================
2// This file was automatically generated.
3// ======================================
4
5use crate::resources::Address;
6use serde::{Deserialize, Serialize};
7
8/// The resource representing a Stripe "Shipping".
9#[derive(Clone, Debug, Default, Deserialize, Serialize)]
10pub struct Shipping {
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub address: Option<Address>,
13
14    /// The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub carrier: Option<String>,
17
18    /// Recipient name.
19    #[serde(skip_serializing_if = "Option::is_none")]
20    pub name: Option<String>,
21
22    /// Recipient phone (including extension).
23    #[serde(skip_serializing_if = "Option::is_none")]
24    pub phone: Option<String>,
25
26    /// The tracking number for a physical product, obtained from the delivery service.
27    ///
28    /// If multiple tracking numbers were generated for this purchase, please separate them with commas.
29    #[serde(skip_serializing_if = "Option::is_none")]
30    pub tracking_number: Option<String>,
31}