Skip to main content

autogen_squareup/models/
card_created_event_object.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 CardCreatedEventObject {
16    #[serde(rename = "card", skip_serializing_if = "Option::is_none")]
17    pub card: Option<Box<models::Card>>,
18}
19
20impl CardCreatedEventObject {
21    pub fn new() -> CardCreatedEventObject {
22        CardCreatedEventObject {
23            card: None,
24        }
25    }
26}
27