squareup/models/
team_member_event_webhook_response.rs

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