amazon_spapi/models/fba_inventory/
inventory_details.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/// InventoryDetails : Summarized inventory details. This object will not appear if the details parameter in the request is false.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct InventoryDetails {
17    /// The item quantity that can be picked, packed, and shipped.
18    #[serde(rename = "fulfillableQuantity", skip_serializing_if = "Option::is_none")]
19    pub fulfillable_quantity: Option<i32>,
20    /// The number of units in an inbound shipment for which you have notified Amazon.
21    #[serde(rename = "inboundWorkingQuantity", skip_serializing_if = "Option::is_none")]
22    pub inbound_working_quantity: Option<i32>,
23    /// The number of units in an inbound shipment that you have notified Amazon about and have provided a tracking number.
24    #[serde(rename = "inboundShippedQuantity", skip_serializing_if = "Option::is_none")]
25    pub inbound_shipped_quantity: Option<i32>,
26    /// The number of units that have not yet been received at an Amazon fulfillment center for processing, but are part of an inbound shipment with some units that have already been received and processed.
27    #[serde(rename = "inboundReceivingQuantity", skip_serializing_if = "Option::is_none")]
28    pub inbound_receiving_quantity: Option<i32>,
29    #[serde(rename = "reservedQuantity", skip_serializing_if = "Option::is_none")]
30    pub reserved_quantity: Option<Box<models::fba_inventory::ReservedQuantity>>,
31    #[serde(rename = "researchingQuantity", skip_serializing_if = "Option::is_none")]
32    pub researching_quantity: Option<Box<models::fba_inventory::ResearchingQuantity>>,
33    #[serde(rename = "unfulfillableQuantity", skip_serializing_if = "Option::is_none")]
34    pub unfulfillable_quantity: Option<Box<models::fba_inventory::UnfulfillableQuantity>>,
35}
36
37impl InventoryDetails {
38    /// Summarized inventory details. This object will not appear if the details parameter in the request is false.
39    pub fn new() -> InventoryDetails {
40        InventoryDetails {
41            fulfillable_quantity: None,
42            inbound_working_quantity: None,
43            inbound_shipped_quantity: None,
44            inbound_receiving_quantity: None,
45            reserved_quantity: None,
46            researching_quantity: None,
47            unfulfillable_quantity: None,
48        }
49    }
50}
51