stripe/model/
quotes_resource_total_details.rs

1use serde::{Serialize, Deserialize};
2use super::QuotesResourceTotalDetailsResourceBreakdown;
3///
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct QuotesResourceTotalDetails {
6    ///This is the sum of all the discounts.
7    pub amount_discount: i64,
8    ///This is the sum of all the shipping amounts.
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub amount_shipping: Option<i64>,
11    ///This is the sum of all the tax amounts.
12    pub amount_tax: i64,
13    ///
14    #[serde(skip_serializing_if = "Option::is_none")]
15    pub breakdown: Option<QuotesResourceTotalDetailsResourceBreakdown>,
16}
17impl std::fmt::Display for QuotesResourceTotalDetails {
18    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
19        write!(f, "{}", serde_json::to_string(self).unwrap())
20    }
21}