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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Selling Partner API for Pricing
 *
 * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// Product : An item.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Product {
    #[serde(default, rename = "Identifiers")]
    pub identifiers: Box<crate::models::IdentifierType>,
    /// A list of product attributes if they are applicable to the product that is returned.
    #[serde(default, rename = "AttributeSets", skip_serializing_if = "Option::is_none")]
    pub attribute_sets: Option<Vec<serde_json::Value>>,
    /// A list that contains product variation information, if applicable.
    #[serde(default, rename = "Relationships", skip_serializing_if = "Option::is_none")]
    pub relationships: Option<Vec<serde_json::Value>>,
    #[serde(default, rename = "CompetitivePricing", skip_serializing_if = "Option::is_none")]
    pub competitive_pricing: Option<Box<crate::models::CompetitivePricingType>>,
    /// A list of sales rank information for the item, by category.
    #[serde(default, rename = "SalesRankings", skip_serializing_if = "Option::is_none")]
    pub sales_rankings: Option<Vec<crate::models::SalesRankType>>,
    /// A list of offers.
    #[serde(default, rename = "Offers", skip_serializing_if = "Option::is_none")]
    pub offers: Option<Vec<crate::models::OfferType>>,
}

impl Product {
    /// An item.
    pub fn new(identifiers: crate::models::IdentifierType) -> Product {
        Product {
            identifiers: Box::new(identifiers),
            attribute_sets: None,
            relationships: None,
            competitive_pricing: None,
            sales_rankings: None,
            offers: None,
        }
    }
}