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
/*
 * Selling Partner API for Retail Procurement Shipments
 *
 * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

/// ContainerItem : Carton/Pallet level details for the item.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ContainerItem {
    /// The reference number for the item. Please provide the itemSequenceNumber from the 'items' segment to refer to that item's details here.
    #[serde(default, rename = "itemReference")]
    pub item_reference: String,
    #[serde(default, rename = "shippedQuantity")]
    pub shipped_quantity: Box<crate::models::ItemQuantity>,
    #[serde(default, rename = "itemDetails", skip_serializing_if = "Option::is_none")]
    pub item_details: Option<Box<crate::models::ItemDetails>>,
}

impl ContainerItem {
    /// Carton/Pallet level details for the item.
    pub fn new(item_reference: String, shipped_quantity: crate::models::ItemQuantity) -> ContainerItem {
        ContainerItem {
            item_reference,
            shipped_quantity: Box::new(shipped_quantity),
            item_details: None,
        }
    }
}