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
/*
 * 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
 */

/// GetInventorySummariesResult : The payload schema for the getInventorySummaries operation.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct GetInventorySummariesResult {
    #[serde(default, rename = "granularity")]
    pub granularity: Box<crate::models::Granularity>,
    /// A list of inventory summaries.
    #[serde(default, rename = "inventorySummaries")]
    pub inventory_summaries: Vec<crate::models::InventorySummary>,
}

impl GetInventorySummariesResult {
    /// The payload schema for the getInventorySummaries operation.
    pub fn new(granularity: crate::models::Granularity, inventory_summaries: Vec<crate::models::InventorySummary>) -> GetInventorySummariesResult {
        GetInventorySummariesResult {
            granularity: Box::new(granularity),
            inventory_summaries,
        }
    }
}