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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * Selling Partner API for FBA Inventory
 *
 * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

/// UnfulfillableQuantity : The quantity of unfulfillable inventory.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct UnfulfillableQuantity {
    /// The total number of units in Amazon's fulfillment network in unsellable condition.
    #[serde(default, rename = "totalUnfulfillableQuantity", skip_serializing_if = "Option::is_none")]
    pub total_unfulfillable_quantity: Option<i32>,
    /// The number of units in customer damaged disposition.
    #[serde(default, rename = "customerDamagedQuantity", skip_serializing_if = "Option::is_none")]
    pub customer_damaged_quantity: Option<i32>,
    /// The number of units in warehouse damaged disposition.
    #[serde(default, rename = "warehouseDamagedQuantity", skip_serializing_if = "Option::is_none")]
    pub warehouse_damaged_quantity: Option<i32>,
    /// The number of units in distributor damaged disposition.
    #[serde(default, rename = "distributorDamagedQuantity", skip_serializing_if = "Option::is_none")]
    pub distributor_damaged_quantity: Option<i32>,
    /// The number of units in carrier damaged disposition.
    #[serde(default, rename = "carrierDamagedQuantity", skip_serializing_if = "Option::is_none")]
    pub carrier_damaged_quantity: Option<i32>,
    /// The number of units in defective disposition.
    #[serde(default, rename = "defectiveQuantity", skip_serializing_if = "Option::is_none")]
    pub defective_quantity: Option<i32>,
    /// The number of units in expired disposition.
    #[serde(default, rename = "expiredQuantity", skip_serializing_if = "Option::is_none")]
    pub expired_quantity: Option<i32>,
}

impl UnfulfillableQuantity {
    /// The quantity of unfulfillable inventory.
    pub fn new() -> UnfulfillableQuantity {
        UnfulfillableQuantity {
            total_unfulfillable_quantity: None,
            customer_damaged_quantity: None,
            warehouse_damaged_quantity: None,
            distributor_damaged_quantity: None,
            carrier_damaged_quantity: None,
            defective_quantity: None,
            expired_quantity: None,
        }
    }
}