amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * 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
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// InventorySummary : Inventory summary for a specific item.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InventorySummary {
    /// The Amazon Standard Identification Number (ASIN) of an item.
    #[serde(rename = "asin", skip_serializing_if = "Option::is_none")]
    pub asin: Option<String>,
    /// Amazon's fulfillment network SKU identifier.
    #[serde(rename = "fnSku", skip_serializing_if = "Option::is_none")]
    pub fn_sku: Option<String>,
    /// The seller SKU of the item.
    #[serde(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(rename = "condition", skip_serializing_if = "Option::is_none")]
    pub condition: Option<String>,
    #[serde(rename = "inventoryDetails", skip_serializing_if = "Option::is_none")]
    pub inventory_details: Option<Box<models::fba_inventory::InventoryDetails>>,
    /// The date and time that any quantity was last updated.
    #[serde(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(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(rename = "totalQuantity", skip_serializing_if = "Option::is_none")]
    pub total_quantity: Option<i32>,
    /// A list of seller-enrolled stores that apply to this seller SKU.
    #[serde(rename = "stores", skip_serializing_if = "Option::is_none")]
    pub stores: Option<Vec<String>>,
}

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,
            stores: None,
        }
    }
}