/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateWhatsAppCallingRequest {
    #[serde(rename = "accountId")]
    pub account_id: String,
    #[serde(rename = "forwardTo", skip_serializing_if = "Option::is_none")]
    pub forward_to: Option<String>,
    #[serde(rename = "sipAuthUsername", skip_serializing_if = "Option::is_none")]
    pub sip_auth_username: Option<String>,
    #[serde(rename = "sipAuthPassword", skip_serializing_if = "Option::is_none")]
    pub sip_auth_password: Option<String>,
    #[serde(rename = "recordingEnabled", skip_serializing_if = "Option::is_none")]
    pub recording_enabled: Option<bool>,
    #[serde(rename = "callIconCountries", skip_serializing_if = "Option::is_none")]
    pub call_icon_countries: Option<Vec<String>>,
}

impl UpdateWhatsAppCallingRequest {
    pub fn new(account_id: String) -> UpdateWhatsAppCallingRequest {
        UpdateWhatsAppCallingRequest {
            account_id,
            forward_to: None,
            sip_auth_username: None,
            sip_auth_password: None,
            recording_enabled: None,
            call_icon_countries: None,
        }
    }
}
