squareup/models/
catalog_version_updated_webhook_response.rs

1//! Response body struct for the catalog version updated event webhook
2
3use crate::models::enums::CatalogWebhookEventType;
4use serde::{Deserialize, Serialize};
5
6use super::{CatalogEventData, DateTime};
7
8/// This is a model struct for CatalogVersionUpdatedWebhookResponse type.
9#[derive(Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
10pub struct CatalogVersionUpdatedWebhookResponse {
11    /// The ID of the target seller associated with the event.
12    pub merchant_id: String,
13    /// The type of this event.
14    pub r#type: CatalogWebhookEventType,
15    /// A unique ID for the event.
16    pub event_id: String,
17    /// Read only The timestamp of when the event was created, in RFC 3339 format.
18    /// Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:
19    /// UTC: 2020-01-26T02:25:34Z
20    /// Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
21    pub created_at: DateTime,
22    /// The data associated with the event.
23    pub data: CatalogEventData,
24}