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




#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ListingOffersRequest {
    /// The resource path of the operation you are calling in batch without any query parameters.  If you are calling `getItemOffersBatch`, supply the path of `getItemOffers`.  **Example:** `/products/pricing/v0/items/B000P6Q7MY/offers`  If you are calling `getListingOffersBatch`, supply the path of `getListingOffers`.  **Example:** `/products/pricing/v0/listings/B000P6Q7MY/offers`
    #[serde(default, rename = "uri")]
    pub uri: String,
    #[serde(default, rename = "method")]
    pub method: crate::models::HttpMethod,
    /// A mapping of additional HTTP headers to send/receive for the individual batch request.
    #[serde(default, rename = "headers", skip_serializing_if = "Option::is_none")]
    pub headers: Option<::std::collections::HashMap<String, String>>,
    /// A marketplace identifier. Specifies the marketplace for which prices are returned.
    #[serde(default, rename = "MarketplaceId")]
    pub marketplace_id: String,
    #[serde(default, rename = "ItemCondition")]
    pub item_condition: crate::models::ItemCondition,
    #[serde(default, rename = "CustomerType", skip_serializing_if = "Option::is_none")]
    pub customer_type: Option<crate::models::CustomerType>,
}

impl ListingOffersRequest {
    pub fn new(uri: String, method: crate::models::HttpMethod, marketplace_id: String, item_condition: crate::models::ItemCondition) -> ListingOffersRequest {
        ListingOffersRequest {
            uri,
            method,
            headers: None,
            marketplace_id,
            item_condition,
            customer_type: None,
        }
    }
}