amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * 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
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// FeesEstimateIdentifier : An item identifier, marketplace, time of request, and other details that identify an estimate.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FeesEstimateIdentifier {
    /// A marketplace identifier.
    #[serde(rename = "MarketplaceId", skip_serializing_if = "Option::is_none")]
    pub marketplace_id: Option<String>,
    /// The seller identifier.
    #[serde(rename = "SellerId", skip_serializing_if = "Option::is_none")]
    pub seller_id: Option<String>,
    #[serde(rename = "IdType", skip_serializing_if = "Option::is_none")]
    pub id_type: Option<models::product_fees_v0::IdType>,
    /// The item identifier.
    #[serde(rename = "IdValue", skip_serializing_if = "Option::is_none")]
    pub id_value: Option<String>,
    /// When true, the offer is fulfilled by Amazon.
    #[serde(rename = "IsAmazonFulfilled", skip_serializing_if = "Option::is_none")]
    pub is_amazon_fulfilled: Option<bool>,
    #[serde(rename = "PriceToEstimateFees", skip_serializing_if = "Option::is_none")]
    pub price_to_estimate_fees: Option<Box<models::product_fees_v0::PriceToEstimateFees>>,
    /// A unique identifier provided by the caller to track this request.
    #[serde(rename = "SellerInputIdentifier", skip_serializing_if = "Option::is_none")]
    pub seller_input_identifier: Option<String>,
    #[serde(rename = "OptionalFulfillmentProgram", skip_serializing_if = "Option::is_none")]
    pub optional_fulfillment_program: Option<models::product_fees_v0::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,
        }
    }
}