amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Amazon Warehousing and Distribution
 *
 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
 *
 * The version of the OpenAPI document: 2024-05-09
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// PackageDimensions : Dimensions of the package.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PackageDimensions {
    /// Height of the package.
    #[serde(rename = "height")]
    pub height: f64,
    /// Length of the package.
    #[serde(rename = "length")]
    pub length: f64,
    #[serde(rename = "unitOfMeasurement")]
    pub unit_of_measurement: models::awd_2024_05_09::DimensionUnitOfMeasurement,
    /// Width of the package.
    #[serde(rename = "width")]
    pub width: f64,
}

impl PackageDimensions {
    /// Dimensions of the package.
    pub fn new(height: f64, length: f64, unit_of_measurement: models::awd_2024_05_09::DimensionUnitOfMeasurement, width: f64) -> PackageDimensions {
        PackageDimensions {
            height,
            length,
            unit_of_measurement,
            width,
        }
    }
}