/*
 * 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 SendWhatsAppBulkRequestRecipientsInner {
    /// Recipient phone number in E.164 format
    #[serde(rename = "phone")]
    pub phone: String,
    /// Per-recipient template variables keyed by index (e.g., \"1\", \"2\")
    #[serde(rename = "variables", skip_serializing_if = "Option::is_none")]
    pub variables: Option<std::collections::HashMap<String, String>>,
}

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