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

/// Granularity : Describes a granularity at which inventory data can be aggregated. For example, if you use Marketplace granularity, the fulfillable quantity will reflect inventory that could be fulfilled in the given marketplace.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Granularity {
    /// The granularity type for the inventory aggregation level.
    #[serde(default, rename = "granularityType", skip_serializing_if = "Option::is_none")]
    pub granularity_type: Option<String>,
    /// The granularity ID for the specified granularity type. When granularityType is Marketplace, specify the marketplaceId.
    #[serde(default, rename = "granularityId", skip_serializing_if = "Option::is_none")]
    pub granularity_id: Option<String>,
}

impl Granularity {
    /// Describes a granularity at which inventory data can be aggregated. For example, if you use Marketplace granularity, the fulfillable quantity will reflect inventory that could be fulfilled in the given marketplace.
    pub fn new() -> Granularity {
        Granularity {
            granularity_type: None,
            granularity_id: None,
        }
    }
}