1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * Selling Partner API for Orders
 *
 * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// BuyerInfo : Buyer information.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct BuyerInfo {
    /// The anonymized email address of the buyer.
    #[serde(default, rename = "BuyerEmail", skip_serializing_if = "Option::is_none")]
    pub buyer_email: Option<String>,
    /// The buyer name or the recipient name.
    #[serde(default, rename = "BuyerName", skip_serializing_if = "Option::is_none")]
    pub buyer_name: Option<String>,
    /// The county of the buyer.
    #[serde(default, rename = "BuyerCounty", skip_serializing_if = "Option::is_none")]
    pub buyer_county: Option<String>,
    #[serde(default, rename = "BuyerTaxInfo", skip_serializing_if = "Option::is_none")]
    pub buyer_tax_info: Option<Box<crate::models::BuyerTaxInfo>>,
    /// The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout.
    #[serde(default, rename = "PurchaseOrderNumber", skip_serializing_if = "Option::is_none")]
    pub purchase_order_number: Option<String>,
}

impl BuyerInfo {
    /// Buyer information.
    pub fn new() -> BuyerInfo {
        BuyerInfo {
            buyer_email: None,
            buyer_name: None,
            buyer_county: None,
            buyer_tax_info: None,
            purchase_order_number: None,
        }
    }
}