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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
 * Selling Partner API for Shipment Invoicing
 *
 * The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// ShipmentDetail : The information required by a selling partner to issue a shipment invoice.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ShipmentDetail {
    /// The Amazon-defined identifier for the warehouse.
    #[serde(default, rename = "WarehouseId", skip_serializing_if = "Option::is_none")]
    pub warehouse_id: Option<String>,
    /// The Amazon-defined identifier for the order.
    #[serde(default, rename = "AmazonOrderId", skip_serializing_if = "Option::is_none")]
    pub amazon_order_id: Option<String>,
    /// The Amazon-defined identifier for the shipment.
    #[serde(default, rename = "AmazonShipmentId", skip_serializing_if = "Option::is_none")]
    pub amazon_shipment_id: Option<String>,
    /// The date and time when the order was created.
    #[serde(default, rename = "PurchaseDate", skip_serializing_if = "Option::is_none")]
    pub purchase_date: Option<String>,
    #[serde(default, rename = "ShippingAddress", skip_serializing_if = "Option::is_none")]
    pub shipping_address: Option<Box<crate::models::Address>>,
    /// The list of payment method details.
    #[serde(default, rename = "PaymentMethodDetails", skip_serializing_if = "Option::is_none")]
    pub payment_method_details: Option<Vec<String>>,
    /// The identifier for the marketplace where the order was placed.
    #[serde(default, rename = "MarketplaceId", skip_serializing_if = "Option::is_none")]
    pub marketplace_id: Option<String>,
    /// The seller identifier.
    #[serde(default, rename = "SellerId", skip_serializing_if = "Option::is_none")]
    pub seller_id: Option<String>,
    /// The name of the buyer.
    #[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>>,
    #[serde(default, rename = "MarketplaceTaxInfo", skip_serializing_if = "Option::is_none")]
    pub marketplace_tax_info: Option<Box<crate::models::MarketplaceTaxInfo>>,
    /// The seller’s friendly name registered in the marketplace.
    #[serde(default, rename = "SellerDisplayName", skip_serializing_if = "Option::is_none")]
    pub seller_display_name: Option<String>,
    /// A list of shipment items.
    #[serde(default, rename = "ShipmentItems", skip_serializing_if = "Option::is_none")]
    pub shipment_items: Option<Vec<crate::models::ShipmentItem>>,
}

impl ShipmentDetail {
    /// The information required by a selling partner to issue a shipment invoice.
    pub fn new() -> ShipmentDetail {
        ShipmentDetail {
            warehouse_id: None,
            amazon_order_id: None,
            amazon_shipment_id: None,
            purchase_date: None,
            shipping_address: None,
            payment_method_details: None,
            marketplace_id: None,
            seller_id: None,
            buyer_name: None,
            buyer_county: None,
            buyer_tax_info: None,
            marketplace_tax_info: None,
            seller_display_name: None,
            shipment_items: None,
        }
    }
}