late 0.0.297

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
/*
 * 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 GetWhatsAppNumberInfo200ResponsePhone {
    #[serde(
        rename = "display_phone_number",
        skip_serializing_if = "Option::is_none"
    )]
    pub display_phone_number: Option<String>,
    #[serde(rename = "verified_name", skip_serializing_if = "Option::is_none")]
    pub verified_name: Option<String>,
    /// APPROVED, AVAILABLE_WITHOUT_REVIEW, PENDING_REVIEW, DECLINED, EXPIRED, NONE
    #[serde(rename = "name_status", skip_serializing_if = "Option::is_none")]
    pub name_status: Option<String>,
    /// GREEN, YELLOW, RED, UNKNOWN
    #[serde(rename = "quality_rating", skip_serializing_if = "Option::is_none")]
    pub quality_rating: Option<String>,
    /// e.g. TIER_250, TIER_1K, TIER_UNLIMITED
    #[serde(
        rename = "messaging_limit_tier",
        skip_serializing_if = "Option::is_none"
    )]
    pub messaging_limit_tier: Option<String>,
    #[serde(rename = "throughput", skip_serializing_if = "Option::is_none")]
    pub throughput: Option<Box<models::GetWhatsAppNumberInfo200ResponsePhoneThroughput>>,
    /// e.g. CONNECTED
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(
        rename = "is_official_business_account",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_official_business_account: Option<bool>,
    /// e.g. CLOUD_API
    #[serde(rename = "platform_type", skip_serializing_if = "Option::is_none")]
    pub platform_type: Option<String>,
    /// Meta's can_send_message health object (messaging + calling signals)
    #[serde(rename = "health_status", skip_serializing_if = "Option::is_none")]
    pub health_status: Option<serde_json::Value>,
}

impl GetWhatsAppNumberInfo200ResponsePhone {
    pub fn new() -> GetWhatsAppNumberInfo200ResponsePhone {
        GetWhatsAppNumberInfo200ResponsePhone {
            display_phone_number: None,
            verified_name: None,
            name_status: None,
            quality_rating: None,
            messaging_limit_tier: None,
            throughput: None,
            status: None,
            is_official_business_account: None,
            platform_type: None,
            health_status: None,
        }
    }
}