amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for FBA inbound operations.
 *
 * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
 *
 * The version of the OpenAPI document: 2024-03-20
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// Dimensions : Measurement of a package's dimensions.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Dimensions {
    /// The height of a package.
    #[serde(rename = "height")]
    pub height: f64,
    /// The length of a package.
    #[serde(rename = "length")]
    pub length: f64,
    #[serde(rename = "unitOfMeasurement")]
    pub unit_of_measurement: models::fulfillment_inbound_2024_03_20::UnitOfMeasurement,
    /// The width of a package.
    #[serde(rename = "width")]
    pub width: f64,
}

impl Dimensions {
    /// Measurement of a package's dimensions.
    pub fn new(height: f64, length: f64, unit_of_measurement: models::fulfillment_inbound_2024_03_20::UnitOfMeasurement, width: f64) -> Dimensions {
        Dimensions {
            height,
            length,
            unit_of_measurement,
            width,
        }
    }
}