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
56
57
58
/*
 * 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
 */

/// InventorySummary : Inventory summary for a specific item.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct InventorySummary {
    /// The Amazon Standard Identification Number (ASIN) of an item.
    #[serde(default, rename = "asin", skip_serializing_if = "Option::is_none")]
    pub asin: Option<String>,
    /// Amazon's fulfillment network SKU identifier.
    #[serde(default, rename = "fnSku", skip_serializing_if = "Option::is_none")]
    pub fn_sku: Option<String>,
    /// The seller SKU of the item.
    #[serde(default, rename = "sellerSku", skip_serializing_if = "Option::is_none")]
    pub seller_sku: Option<String>,
    /// The condition of the item as described by the seller (for example, New Item).
    #[serde(default, rename = "condition", skip_serializing_if = "Option::is_none")]
    pub condition: Option<String>,
    #[serde(default, rename = "inventoryDetails", skip_serializing_if = "Option::is_none")]
    pub inventory_details: Option<Box<crate::models::InventoryDetails>>,
    /// The date and time that any quantity was last updated.
    #[serde(default, rename = "lastUpdatedTime", skip_serializing_if = "Option::is_none")]
    pub last_updated_time: Option<String>,
    /// The localized language product title of the item within the specific marketplace.
    #[serde(default, rename = "productName", skip_serializing_if = "Option::is_none")]
    pub product_name: Option<String>,
    /// The total number of units in an inbound shipment or in Amazon fulfillment centers.
    #[serde(default, rename = "totalQuantity", skip_serializing_if = "Option::is_none")]
    pub total_quantity: Option<i32>,
}

impl InventorySummary {
    /// Inventory summary for a specific item.
    pub fn new() -> InventorySummary {
        InventorySummary {
            asin: None,
            fn_sku: None,
            seller_sku: None,
            condition: None,
            inventory_details: None,
            last_updated_time: None,
            product_name: None,
            total_quantity: None,
        }
    }
}