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};

/// FeesEstimateResult : An item identifier and the estimated fees for the item.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FeesEstimateResult {
    /// The status of the fee request. Possible values: Success, ClientError, ServiceError.
    #[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(rename = "FeesEstimateIdentifier", skip_serializing_if = "Option::is_none")]
    pub fees_estimate_identifier: Option<Box<models::product_fees_v0::FeesEstimateIdentifier>>,
    #[serde(rename = "FeesEstimate", skip_serializing_if = "Option::is_none")]
    pub fees_estimate: Option<Box<models::product_fees_v0::FeesEstimate>>,
    #[serde(rename = "Error", skip_serializing_if = "Option::is_none")]
    pub error: Option<Box<models::product_fees_v0::FeesEstimateError>>,
}

impl FeesEstimateResult {
    /// An item identifier and the estimated fees for the item.
    pub fn new() -> FeesEstimateResult {
        FeesEstimateResult {
            status: None,
            fees_estimate_identifier: None,
            fees_estimate: None,
            error: None,
        }
    }
}