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};

/// TransportShipmentMeasurements : Shipment measurement details.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TransportShipmentMeasurements {
    /// Total number of cartons present in the shipment. Provide the cartonCount only for non-palletized shipments.
    #[serde(rename = "totalCartonCount", skip_serializing_if = "Option::is_none")]
    pub total_carton_count: Option<i32>,
    /// Total number of Stackable Pallets present in the shipment.
    #[serde(rename = "totalPalletStackable", skip_serializing_if = "Option::is_none")]
    pub total_pallet_stackable: Option<i32>,
    /// Total number of Non Stackable Pallets present in the shipment.
    #[serde(rename = "totalPalletNonStackable", skip_serializing_if = "Option::is_none")]
    pub total_pallet_non_stackable: Option<i32>,
    #[serde(rename = "shipmentWeight", skip_serializing_if = "Option::is_none")]
    pub shipment_weight: Option<Box<models::vendor_shipments::Weight>>,
    #[serde(rename = "shipmentVolume", skip_serializing_if = "Option::is_none")]
    pub shipment_volume: Option<Box<models::vendor_shipments::Volume>>,
}

impl TransportShipmentMeasurements {
    /// Shipment measurement details.
    pub fn new() -> TransportShipmentMeasurements {
        TransportShipmentMeasurements {
            total_carton_count: None,
            total_pallet_stackable: None,
            total_pallet_non_stackable: None,
            shipment_weight: None,
            shipment_volume: None,
        }
    }
}