1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
/*
* Selling Partner API for Direct Fulfillment Inventory Updates
*
* The Selling Partner API for Direct Fulfillment Inventory Updates provides programmatic access to a direct fulfillment vendor's inventory updates.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
/// ItemQuantity : Details of item quantity.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ItemQuantity {
/// Quantity of units available for a specific item.
#[serde(default, rename = "amount", skip_serializing_if = "Option::is_none")]
pub amount: Option<i32>,
/// Unit of measure for the available quantity.
#[serde(default, rename = "unitOfMeasure")]
pub unit_of_measure: String,
}
impl ItemQuantity {
/// Details of item quantity.
pub fn new(unit_of_measure: String) -> ItemQuantity {
ItemQuantity {
amount: None,
unit_of_measure,
}
}
}