/*
* Selling Partner API for Direct Fulfillment Shipping
*
* The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ItemQuantity : Details of item quantity.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ItemQuantity {
/// Quantity of units shipped for a specific item at a shipment level. If the item is present only in certain packages or pallets within the shipment, please provide this at the appropriate package or pallet level.
#[serde(rename = "amount")]
pub amount: i32,
/// Unit of measure for the shipped quantity.
#[serde(rename = "unitOfMeasure")]
pub unit_of_measure: String,
}
impl ItemQuantity {
/// Details of item quantity.
pub fn new(amount: i32, unit_of_measure: String) -> ItemQuantity {
ItemQuantity {
amount,
unit_of_measure,
}
}
}