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
50
51
52
53
54
55
56
/*
 * 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
 */

/// FeesEstimateIdentifier : An item identifier, marketplace, time of request, and other details that identify an estimate.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct FeesEstimateIdentifier {
    /// A marketplace identifier.
    #[serde(default, rename = "MarketplaceId", skip_serializing_if = "Option::is_none")]
    pub marketplace_id: Option<String>,
    /// The seller identifier.
    #[serde(default, rename = "SellerId", skip_serializing_if = "Option::is_none")]
    pub seller_id: Option<String>,
    #[serde(default, rename = "IdType", skip_serializing_if = "Option::is_none")]
    pub id_type: Option<crate::models::IdType>,
    /// The item identifier.
    #[serde(default, rename = "IdValue", skip_serializing_if = "Option::is_none")]
    pub id_value: Option<String>,
    /// When true, the offer is fulfilled by Amazon.
    #[serde(default, rename = "IsAmazonFulfilled", skip_serializing_if = "Option::is_none")]
    pub is_amazon_fulfilled: Option<bool>,
    #[serde(default, rename = "PriceToEstimateFees", skip_serializing_if = "Option::is_none")]
    pub price_to_estimate_fees: Option<Box<crate::models::PriceToEstimateFees>>,
    /// A unique identifier provided by the caller to track this request.
    #[serde(default, rename = "SellerInputIdentifier", skip_serializing_if = "Option::is_none")]
    pub seller_input_identifier: Option<String>,
    #[serde(default, rename = "OptionalFulfillmentProgram", skip_serializing_if = "Option::is_none")]
    pub optional_fulfillment_program: Option<crate::models::OptionalFulfillmentProgram>,
}

impl FeesEstimateIdentifier {
    /// An item identifier, marketplace, time of request, and other details that identify an estimate.
    pub fn new() -> FeesEstimateIdentifier {
        FeesEstimateIdentifier {
            marketplace_id: None,
            seller_id: None,
            id_type: None,
            id_value: None,
            is_amazon_fulfilled: None,
            price_to_estimate_fees: None,
            seller_input_identifier: None,
            optional_fulfillment_program: None,
        }
    }
}