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