stripe/model/
quotes_resource_upfront.rs

1use serde::{Serialize, Deserialize};
2use super::{QuotesResourceListLineItems, QuotesResourceTotalDetails};
3///
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct QuotesResourceUpfront {
6    ///Total before any discounts or taxes are applied.
7    pub amount_subtotal: i64,
8    ///Total after discounts and taxes are applied.
9    pub amount_total: i64,
10    ///The line items that will appear on the next invoice after this quote is accepted. This does not include pending invoice items that exist on the customer but may still be included in the next invoice.
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub line_items: Option<QuotesResourceListLineItems>,
13    ///
14    pub total_details: QuotesResourceTotalDetails,
15}
16impl std::fmt::Display for QuotesResourceUpfront {
17    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
18        write!(f, "{}", serde_json::to_string(self).unwrap())
19    }
20}