use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IncludedFeeDetail {
#[serde(rename = "FeeType")]
pub fee_type: String,
#[serde(rename = "FeeAmount")]
pub fee_amount: Box<models::product_fees_v0::MoneyType>,
#[serde(rename = "FeePromotion", skip_serializing_if = "Option::is_none")]
pub fee_promotion: Option<Box<models::product_fees_v0::MoneyType>>,
#[serde(rename = "TaxAmount", skip_serializing_if = "Option::is_none")]
pub tax_amount: Option<Box<models::product_fees_v0::MoneyType>>,
#[serde(rename = "FinalFee")]
pub final_fee: Box<models::product_fees_v0::MoneyType>,
}
impl IncludedFeeDetail {
pub fn new(fee_type: String, fee_amount: models::product_fees_v0::MoneyType, final_fee: models::product_fees_v0::MoneyType) -> IncludedFeeDetail {
IncludedFeeDetail {
fee_type,
fee_amount: Box::new(fee_amount),
fee_promotion: None,
tax_amount: None,
final_fee: Box::new(final_fee),
}
}
}