amazon_spapi/models/vendor_shipments/carton_reference_details.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/// CartonReferenceDetails : Carton reference details.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CartonReferenceDetails {
17 /// Pallet level carton count is mandatory for single item pallet and optional for mixed item pallet.
18 #[serde(rename = "cartonCount", skip_serializing_if = "Option::is_none")]
19 pub carton_count: Option<i32>,
20 /// 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.
21 #[serde(rename = "cartonReferenceNumbers")]
22 pub carton_reference_numbers: Vec<String>,
23}
24
25impl CartonReferenceDetails {
26 /// Carton reference details.
27 pub fn new(carton_reference_numbers: Vec<String>) -> CartonReferenceDetails {
28 CartonReferenceDetails {
29 carton_count: None,
30 carton_reference_numbers,
31 }
32 }
33}
34