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