square_api_client/models/
search_invoices_response.rs

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