/*
 * 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.1
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateWhatsAppBroadcastRequestRecipientsInner {
    /// Phone number in E.164 format
    #[serde(rename = "phone")]
    pub phone: String,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Per-recipient template variables
    #[serde(rename = "variables", skip_serializing_if = "Option::is_none")]
    pub variables: Option<std::collections::HashMap<String, String>>,
}

impl CreateWhatsAppBroadcastRequestRecipientsInner {
    pub fn new(phone: String) -> CreateWhatsAppBroadcastRequestRecipientsInner {
        CreateWhatsAppBroadcastRequestRecipientsInner {
            phone,
            name: None,
            variables: None,
        }
    }
}
