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
/*
 * Selling Partner API for Merchant Fulfillment
 *
 * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// Item : An Amazon order item identifier and a quantity.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Item {
    /// An Amazon-defined identifier for an individual item in an order.
    #[serde(default, rename = "OrderItemId")]
    pub order_item_id: String,
    /// The number of items.
    #[serde(default, rename = "Quantity")]
    pub quantity: i32,
    #[serde(default, rename = "ItemWeight", skip_serializing_if = "Option::is_none")]
    pub item_weight: Option<Box<crate::models::Weight>>,
    /// The description of the item.
    #[serde(default, rename = "ItemDescription", skip_serializing_if = "Option::is_none")]
    pub item_description: Option<String>,
    /// A list of transparency codes.
    #[serde(default, rename = "TransparencyCodeList", skip_serializing_if = "Option::is_none")]
    pub transparency_code_list: Option<Vec<String>>,
    /// A list of additional seller input pairs required to purchase shipping.
    #[serde(default, rename = "ItemLevelSellerInputsList", skip_serializing_if = "Option::is_none")]
    pub item_level_seller_inputs_list: Option<Vec<crate::models::AdditionalSellerInputs>>,
}

impl Item {
    /// An Amazon order item identifier and a quantity.
    pub fn new(order_item_id: String, quantity: i32) -> Item {
        Item {
            order_item_id,
            quantity,
            item_weight: None,
            item_description: None,
            transparency_code_list: None,
            item_level_seller_inputs_list: None,
        }
    }
}