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

/// FeesEstimateError : An unexpected error occurred during this operation.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct FeesEstimateError {
    /// An error type, identifying either the receiver or the sender as the originator of the error.
    #[serde(default, rename = "Type")]
    pub _type: String,
    /// An error code that identifies the type of error that occurred.
    #[serde(default, rename = "Code")]
    pub code: String,
    /// A message that describes the error condition.
    #[serde(default, rename = "Message")]
    pub message: String,
    /// Additional information that can help the caller understand or fix the issue.
    #[serde(default, rename = "Detail")]
    pub detail: Vec<serde_json::Value>,
}

impl FeesEstimateError {
    /// An unexpected error occurred during this operation.
    pub fn new(_type: String, code: String, message: String, detail: Vec<serde_json::Value>) -> FeesEstimateError {
        FeesEstimateError {
            _type,
            code,
            message,
            detail,
        }
    }
}