/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
*
* The version of the OpenAPI document: 1.0.4
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// WebhookPayloadReferralSender : Who clicked - the conversation participant.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebhookPayloadReferralSender {
/// Platform-scoped user ID (IGSID / PSID).
#[serde(rename = "id")]
pub id: String,
/// Zernio CRM Contact id for this sender, when one exists.
#[serde(rename = "contactId", skip_serializing_if = "Option::is_none")]
pub contact_id: Option<String>,
}
impl WebhookPayloadReferralSender {
/// Who clicked - the conversation participant.
pub fn new(id: String) -> WebhookPayloadReferralSender {
WebhookPayloadReferralSender {
id,
contact_id: None,
}
}
}