square_api_client/models/
cancel_invoice_response.rs

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