/*
 * 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 ListWhatsAppNumberCountries200ResponseCountriesInner {
    /// ISO 3166-1 alpha-2
    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
    pub code: Option<String>,
    #[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
    pub tier: Option<Tier>,
    #[serde(rename = "monthlyCents", skip_serializing_if = "Option::is_none")]
    pub monthly_cents: Option<i32>,
    #[serde(rename = "needsKyc", skip_serializing_if = "Option::is_none")]
    pub needs_kyc: Option<bool>,
    #[serde(
        rename = "outboundCallingAvailable",
        skip_serializing_if = "Option::is_none"
    )]
    pub outbound_calling_available: Option<bool>,
}

impl ListWhatsAppNumberCountries200ResponseCountriesInner {
    pub fn new() -> ListWhatsAppNumberCountries200ResponseCountriesInner {
        ListWhatsAppNumberCountries200ResponseCountriesInner {
            code: None,
            tier: None,
            monthly_cents: None,
            needs_kyc: None,
            outbound_calling_available: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Tier {
    #[serde(rename = "1")]
    Variant1,
    #[serde(rename = "2")]
    Variant2,
    #[serde(rename = "3")]
    Variant3,
    #[serde(rename = "4")]
    Variant4,
}

impl Default for Tier {
    fn default() -> Tier {
        Self::Variant1
    }
}
