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

/// ListWhatsAppPhoneNumbers200ResponsePhoneNumbersInner : Phone number entry. Field names use Meta WhatsApp Cloud API snake_case (passed through unchanged); wabaId and wabaName are Zernio enrichment.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListWhatsAppPhoneNumbers200ResponsePhoneNumbersInner {
    /// Phone Number ID (Meta)
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// E.164-formatted display number
    #[serde(
        rename = "display_phone_number",
        skip_serializing_if = "Option::is_none"
    )]
    pub display_phone_number: Option<String>,
    /// Meta-verified business name
    #[serde(rename = "verified_name", skip_serializing_if = "Option::is_none")]
    pub verified_name: Option<String>,
    /// GREEN, YELLOW, RED, or UNKNOWN
    #[serde(rename = "quality_rating", skip_serializing_if = "Option::is_none")]
    pub quality_rating: Option<String>,
    /// APPROVED, PENDING_REVIEW, DECLINED, or NONE
    #[serde(rename = "name_status", skip_serializing_if = "Option::is_none")]
    pub name_status: Option<String>,
    /// TIER_250, TIER_1K, TIER_10K, TIER_100K, or TIER_UNLIMITED
    #[serde(
        rename = "messaging_limit_tier",
        skip_serializing_if = "Option::is_none"
    )]
    pub messaging_limit_tier: Option<String>,
    /// WhatsApp Business Account ID (Zernio enrichment)
    #[serde(rename = "wabaId", skip_serializing_if = "Option::is_none")]
    pub waba_id: Option<String>,
    /// WABA display name (Zernio enrichment)
    #[serde(rename = "wabaName", skip_serializing_if = "Option::is_none")]
    pub waba_name: Option<String>,
}

impl ListWhatsAppPhoneNumbers200ResponsePhoneNumbersInner {
    /// Phone number entry. Field names use Meta WhatsApp Cloud API snake_case (passed through unchanged); wabaId and wabaName are Zernio enrichment.
    pub fn new() -> ListWhatsAppPhoneNumbers200ResponsePhoneNumbersInner {
        ListWhatsAppPhoneNumbers200ResponsePhoneNumbersInner {
            id: None,
            display_phone_number: None,
            verified_name: None,
            quality_rating: None,
            name_status: None,
            messaging_limit_tier: None,
            waba_id: None,
            waba_name: None,
        }
    }
}
