Skip to main content

autogen_squareup/models/
payout_failed_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 PayoutFailedEventData {
16    /// The name of the affected object's type, `payout`.
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    /// The ID of the failed payout.
20    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21    pub id: Option<String>,
22    #[serde(rename = "object", skip_serializing_if = "Option::is_none")]
23    pub object: Option<Box<models::PayoutFailedEventObject>>,
24}
25
26impl PayoutFailedEventData {
27    pub fn new() -> PayoutFailedEventData {
28        PayoutFailedEventData {
29            r#type: None,
30            id: None,
31            object: None,
32        }
33    }
34}
35