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

/// Pallet : Details of the Pallet/Tare being shipped.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Pallet {
    /// A list of pallet identifiers.
    #[serde(default, rename = "palletIdentifiers")]
    pub pallet_identifiers: Vec<crate::models::ContainerIdentification>,
    /// Number of layers per pallet.
    #[serde(default, rename = "tier", skip_serializing_if = "Option::is_none")]
    pub tier: Option<i32>,
    /// Number of cartons per layer on the pallet.
    #[serde(default, rename = "block", skip_serializing_if = "Option::is_none")]
    pub block: Option<i32>,
    #[serde(default, rename = "dimensions", skip_serializing_if = "Option::is_none")]
    pub dimensions: Option<Box<crate::models::Dimensions>>,
    #[serde(default, rename = "weight", skip_serializing_if = "Option::is_none")]
    pub weight: Option<Box<crate::models::Weight>>,
    #[serde(default, rename = "cartonReferenceDetails", skip_serializing_if = "Option::is_none")]
    pub carton_reference_details: Option<Box<crate::models::CartonReferenceDetails>>,
    /// A list of container item details.
    #[serde(default, rename = "items", skip_serializing_if = "Option::is_none")]
    pub items: Option<Vec<crate::models::ContainerItem>>,
}

impl Pallet {
    /// Details of the Pallet/Tare being shipped.
    pub fn new(pallet_identifiers: Vec<crate::models::ContainerIdentification>) -> Pallet {
        Pallet {
            pallet_identifiers,
            tier: None,
            block: None,
            dimensions: None,
            weight: None,
            carton_reference_details: None,
            items: None,
        }
    }
}