amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * 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
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// CartonReferenceDetails : Carton reference details.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CartonReferenceDetails {
    /// Pallet level carton count is mandatory for single item pallet and optional for mixed item pallet.
    #[serde(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(rename = "cartonReferenceNumbers")]
    pub carton_reference_numbers: Vec<String>,
}

impl CartonReferenceDetails {
    /// Carton reference details.
    pub fn new(carton_reference_numbers: Vec<String>) -> CartonReferenceDetails {
        CartonReferenceDetails {
            carton_count: None,
            carton_reference_numbers,
        }
    }
}