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
/*
 * 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
 */

/// ShipmentItem : The shipment item information required by a seller to issue a shipment invoice.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ShipmentItem {
    /// The Amazon Standard Identification Number (ASIN) of the item.
    #[serde(default, rename = "ASIN", skip_serializing_if = "Option::is_none")]
    pub ASIN: Option<String>,
    /// The seller SKU of the item.
    #[serde(default, rename = "SellerSKU", skip_serializing_if = "Option::is_none")]
    pub seller_sku: Option<String>,
    /// The Amazon-defined identifier for the order item.
    #[serde(default, rename = "OrderItemId", skip_serializing_if = "Option::is_none")]
    pub order_item_id: Option<String>,
    /// The name of the item.
    #[serde(default, rename = "Title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// The number of items ordered.
    #[serde(default, rename = "QuantityOrdered", skip_serializing_if = "Option::is_none")]
    pub quantity_ordered: Option<f32>,
    #[serde(default, rename = "ItemPrice", skip_serializing_if = "Option::is_none")]
    pub item_price: Option<Box<crate::models::Money>>,
    #[serde(default, rename = "ShippingPrice", skip_serializing_if = "Option::is_none")]
    pub shipping_price: Option<Box<crate::models::Money>>,
    #[serde(default, rename = "GiftWrapPrice", skip_serializing_if = "Option::is_none")]
    pub gift_wrap_price: Option<Box<crate::models::Money>>,
    #[serde(default, rename = "ShippingDiscount", skip_serializing_if = "Option::is_none")]
    pub shipping_discount: Option<Box<crate::models::Money>>,
    #[serde(default, rename = "PromotionDiscount", skip_serializing_if = "Option::is_none")]
    pub promotion_discount: Option<Box<crate::models::Money>>,
    /// The list of serial numbers.
    #[serde(default, rename = "SerialNumbers", skip_serializing_if = "Option::is_none")]
    pub serial_numbers: Option<Vec<String>>,
}

impl ShipmentItem {
    /// The shipment item information required by a seller to issue a shipment invoice.
    pub fn new() -> ShipmentItem {
        ShipmentItem {
            ASIN: None,
            seller_sku: None,
            order_item_id: None,
            title: None,
            quantity_ordered: None,
            item_price: None,
            shipping_price: None,
            gift_wrap_price: None,
            shipping_discount: None,
            promotion_discount: None,
            serial_numbers: None,
        }
    }
}