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




#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct CartonReferenceDetails {
    /// Pallet level carton count is mandatory for single item pallet and optional for mixed item pallet.
    #[serde(default, rename = "cartonCount", skip_serializing_if = "Option::is_none")]
    pub carton_count: Option<i32>,
    /// Array of reference numbers for the carton that are part of this pallet/shipment. Please provide the cartonSequenceNumber from the 'cartons' segment to refer to that carton's details here.
    #[serde(default, rename = "cartonReferenceNumbers")]
    pub carton_reference_numbers: Vec<String>,
}

impl CartonReferenceDetails {
    pub fn new(carton_reference_numbers: Vec<String>) -> CartonReferenceDetails {
        CartonReferenceDetails {
            carton_count: None,
            carton_reference_numbers,
        }
    }
}