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 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
 */

/// ItemQuantity : Details of item quantity.



#[derive(Clone, Debug, PartialEq, Default, 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(default, rename = "amount")]
    pub amount: i32,
    /// Unit of measure for the shipped quantity.
    #[serde(default, 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,
        }
    }
}