stripe/model/refund_list.rs
1use serde::{Serialize, Deserialize};
2use super::Refund;
3///
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct RefundList {
6 ///Details about each object.
7 pub data: Vec<Refund>,
8 ///True if this list has another page of items after this one that can be fetched.
9 pub has_more: bool,
10 ///String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
11 pub object: String,
12 ///The URL where this list can be accessed.
13 pub url: String,
14}
15impl std::fmt::Display for RefundList {
16 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
17 write!(f, "{}", serde_json::to_string(self).unwrap())
18 }
19}