stripe/model/
get_credit_notes_credit_note_lines_response.rs

1use serde::{Serialize, Deserialize};
2use super::CreditNoteLineItem;
3///
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct GetCreditNotesCreditNoteLinesResponse {
6    ///Details about each object.
7    pub data: Vec<CreditNoteLineItem>,
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 GetCreditNotesCreditNoteLinesResponse {
16    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
17        write!(f, "{}", serde_json::to_string(self).unwrap())
18    }
19}