amazon_spapi/models/fba_inventory/
inventory_summary.rs

1/*
2 * Selling Partner API for FBA Inventory
3 *
4 * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// InventorySummary : Inventory summary for a specific item.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct InventorySummary {
17    /// The Amazon Standard Identification Number (ASIN) of an item.
18    #[serde(rename = "asin", skip_serializing_if = "Option::is_none")]
19    pub asin: Option<String>,
20    /// Amazon's fulfillment network SKU identifier.
21    #[serde(rename = "fnSku", skip_serializing_if = "Option::is_none")]
22    pub fn_sku: Option<String>,
23    /// The seller SKU of the item.
24    #[serde(rename = "sellerSku", skip_serializing_if = "Option::is_none")]
25    pub seller_sku: Option<String>,
26    /// The condition of the item as described by the seller (for example, New Item).
27    #[serde(rename = "condition", skip_serializing_if = "Option::is_none")]
28    pub condition: Option<String>,
29    #[serde(rename = "inventoryDetails", skip_serializing_if = "Option::is_none")]
30    pub inventory_details: Option<Box<models::fba_inventory::InventoryDetails>>,
31    /// The date and time that any quantity was last updated.
32    #[serde(rename = "lastUpdatedTime", skip_serializing_if = "Option::is_none")]
33    pub last_updated_time: Option<String>,
34    /// The localized language product title of the item within the specific marketplace.
35    #[serde(rename = "productName", skip_serializing_if = "Option::is_none")]
36    pub product_name: Option<String>,
37    /// The total number of units in an inbound shipment or in Amazon fulfillment centers.
38    #[serde(rename = "totalQuantity", skip_serializing_if = "Option::is_none")]
39    pub total_quantity: Option<i32>,
40    /// A list of seller-enrolled stores that apply to this seller SKU.
41    #[serde(rename = "stores", skip_serializing_if = "Option::is_none")]
42    pub stores: Option<Vec<String>>,
43}
44
45impl InventorySummary {
46    /// Inventory summary for a specific item.
47    pub fn new() -> InventorySummary {
48        InventorySummary {
49            asin: None,
50            fn_sku: None,
51            seller_sku: None,
52            condition: None,
53            inventory_details: None,
54            last_updated_time: None,
55            product_name: None,
56            total_quantity: None,
57            stores: None,
58        }
59    }
60}
61