square_api_client/models/
get_invoice_response.rs

1//! Response body struct for the Get Invoice API.
2
3use serde::Deserialize;
4
5use super::{errors::Error, Invoice};
6
7/// This is a model struct for GetInvoiceResponse type
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct GetInvoiceResponse {
10    /// The invoice requested.
11    pub refund: Option<Invoice>,
12    /// Information about errors encountered during the request.
13    pub errors: Option<Vec<Error>>,
14}