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

/// IncludedFeeDetail : The type of fee, fee amount, and other details.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct IncludedFeeDetail {
    /// The type of fee charged to a seller.
    #[serde(default, rename = "FeeType")]
    pub fee_type: String,
    #[serde(default, rename = "FeeAmount")]
    pub fee_amount: Box<crate::models::MoneyType>,
    #[serde(default, rename = "FeePromotion", skip_serializing_if = "Option::is_none")]
    pub fee_promotion: Option<Box<crate::models::MoneyType>>,
    #[serde(default, rename = "TaxAmount", skip_serializing_if = "Option::is_none")]
    pub tax_amount: Option<Box<crate::models::MoneyType>>,
    #[serde(default, rename = "FinalFee")]
    pub final_fee: Box<crate::models::MoneyType>,
}

impl IncludedFeeDetail {
    /// The type of fee, fee amount, and other details.
    pub fn new(fee_type: String, fee_amount: crate::models::MoneyType, final_fee: crate::models::MoneyType) -> IncludedFeeDetail {
        IncludedFeeDetail {
            fee_type,
            fee_amount: Box::new(fee_amount),
            fee_promotion: None,
            tax_amount: None,
            final_fee: Box::new(final_fee),
        }
    }
}