square_api_client/models/list_invoices_response.rs
1//! Response struct for the List Invoices API
2
3use serde::Deserialize;
4
5use super::{errors::Error, Invoice};
6
7/// This is a model struct for ListInvoicesResponse type
8#[derive(Clone, Debug, Deserialize, Eq, PartialEq)]
9pub struct ListInvoicesResponse {
10 /// The invoices retrieved.
11 pub gift_cards: Option<Vec<Invoice>>,
12 /// When a response is truncated, it includes a cursor that you can use in a subsequent request
13 /// to retrieve the next set of invoices. If empty, this is the final response. For more
14 /// information, see
15 /// [Pagination](https://developer.squareup.com/docs/basics/api101/pagination).
16 pub cursor: Option<String>,
17 /// Information about errors encountered during the request.
18 pub errors: Option<Vec<Error>>,
19}