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
/*
 * Selling Partner API for Product Fees
 *
 * The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// FeesEstimateByIdRequest : A product, marketplace, and proposed price used to request estimated fees.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct FeesEstimateByIdRequest {
    #[serde(default, rename = "FeesEstimateRequest", skip_serializing_if = "Option::is_none")]
    pub fees_estimate_request: Option<Box<crate::models::FeesEstimateRequest>>,
    #[serde(default, rename = "IdType")]
    pub id_type: crate::models::IdType,
    /// The item identifier.
    #[serde(default, rename = "IdValue")]
    pub id_value: String,
}

impl FeesEstimateByIdRequest {
    /// A product, marketplace, and proposed price used to request estimated fees.
    pub fn new(id_type: crate::models::IdType, id_value: String) -> FeesEstimateByIdRequest {
        FeesEstimateByIdRequest {
            fees_estimate_request: None,
            id_type,
            id_value,
        }
    }
}