stripe/model/invoice_item_threshold_reason.rs
1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct InvoiceItemThresholdReason {
5 ///The IDs of the line items that triggered the threshold invoice.
6 pub line_item_ids: Vec<String>,
7 ///The quantity threshold boundary that applied to the given line item.
8 pub usage_gte: i64,
9}
10impl std::fmt::Display for InvoiceItemThresholdReason {
11 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
12 write!(f, "{}", serde_json::to_string(self).unwrap())
13 }
14}