/*
* 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};
/// InventoryQuantity : Quantity of inventory with an associated measurement unit context.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InventoryQuantity {
/// Quantity of the respective inventory.
#[serde(rename = "quantity")]
pub quantity: f64,
#[serde(rename = "unitOfMeasurement")]
pub unit_of_measurement: models::awd_2024_05_09::InventoryUnitOfMeasurement,
}
impl InventoryQuantity {
/// Quantity of inventory with an associated measurement unit context.
pub fn new(quantity: f64, unit_of_measurement: models::awd_2024_05_09::InventoryUnitOfMeasurement) -> InventoryQuantity {
InventoryQuantity {
quantity,
unit_of_measurement,
}
}
}