Skip to main content

autogen_squareup/models/
invoice_deleted_event_data.rs

1/*
2 * Square
3 *
4 * Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.
5 *
6 * The version of the OpenAPI document: 2.0
7 * Contact: developers@squareup.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct InvoiceDeletedEventData {
16    /// Name of the affected object’s type, `\"invoice\"`.
17    #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<Option<String>>,
19    /// ID of the affected invoice.
20    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21    pub id: Option<String>,
22    /// Indicates that the invoice was deleted.
23    #[serde(rename = "deleted", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub deleted: Option<Option<bool>>,
25}
26
27impl InvoiceDeletedEventData {
28    pub fn new() -> InvoiceDeletedEventData {
29        InvoiceDeletedEventData {
30            r#type: None,
31            id: None,
32            deleted: None,
33        }
34    }
35}
36