autogen_squareup/models/gift_card_updated_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/// GiftCardUpdatedEventObject : An object that contains the gift card associated with a `gift_card.updated` event.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GiftCardUpdatedEventObject {
17 #[serde(rename = "gift_card", skip_serializing_if = "Option::is_none")]
18 pub gift_card: Option<Box<models::GiftCard>>,
19}
20
21impl GiftCardUpdatedEventObject {
22 /// An object that contains the gift card associated with a `gift_card.updated` event.
23 pub fn new() -> GiftCardUpdatedEventObject {
24 GiftCardUpdatedEventObject {
25 gift_card: None,
26 }
27 }
28}
29