amazon_spapi/models/vendor_shipments/
pallet.rs

1/*
2 * Selling Partner API for Retail Procurement Shipments
3 *
4 * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Pallet : Details of the Pallet/Tare being shipped.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Pallet {
17    /// A list of pallet identifiers.
18    #[serde(rename = "palletIdentifiers")]
19    pub pallet_identifiers: Vec<models::vendor_shipments::ContainerIdentification>,
20    /// Number of layers per pallet. Only applicable to container type Pallet.
21    #[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
22    pub tier: Option<i32>,
23    /// Number of cartons per layer on the pallet. Only applicable to container type Pallet.
24    #[serde(rename = "block", skip_serializing_if = "Option::is_none")]
25    pub block: Option<i32>,
26    #[serde(rename = "dimensions", skip_serializing_if = "Option::is_none")]
27    pub dimensions: Option<Box<models::vendor_shipments::Dimensions>>,
28    #[serde(rename = "weight", skip_serializing_if = "Option::is_none")]
29    pub weight: Option<Box<models::vendor_shipments::Weight>>,
30    #[serde(rename = "cartonReferenceDetails", skip_serializing_if = "Option::is_none")]
31    pub carton_reference_details: Option<Box<models::vendor_shipments::CartonReferenceDetails>>,
32    /// A list of container item details.
33    #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
34    pub items: Option<Vec<models::vendor_shipments::ContainerItem>>,
35}
36
37impl Pallet {
38    /// Details of the Pallet/Tare being shipped.
39    pub fn new(pallet_identifiers: Vec<models::vendor_shipments::ContainerIdentification>) -> Pallet {
40        Pallet {
41            pallet_identifiers,
42            tier: None,
43            block: None,
44            dimensions: None,
45            weight: None,
46            carton_reference_details: None,
47            items: None,
48        }
49    }
50}
51