/*
 * 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 GetWhatsAppPhoneNumber200ResponsePhoneNumber {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "phoneNumber", skip_serializing_if = "Option::is_none")]
    pub phone_number: Option<String>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<Status>,
    #[serde(rename = "country", skip_serializing_if = "Option::is_none")]
    pub country: Option<String>,
    #[serde(rename = "metaPreverifiedId", skip_serializing_if = "Option::is_none")]
    pub meta_preverified_id: Option<String>,
    #[serde(
        rename = "metaVerificationStatus",
        skip_serializing_if = "Option::is_none"
    )]
    pub meta_verification_status: Option<String>,
    #[serde(rename = "provisionedAt", skip_serializing_if = "Option::is_none")]
    pub provisioned_at: Option<String>,
}

impl GetWhatsAppPhoneNumber200ResponsePhoneNumber {
    pub fn new() -> GetWhatsAppPhoneNumber200ResponsePhoneNumber {
        GetWhatsAppPhoneNumber200ResponsePhoneNumber {
            id: None,
            phone_number: None,
            status: None,
            country: None,
            meta_preverified_id: None,
            meta_verification_status: None,
            provisioned_at: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Status {
    #[serde(rename = "pending_payment")]
    PendingPayment,
    #[serde(rename = "provisioning")]
    Provisioning,
    #[serde(rename = "active")]
    Active,
    #[serde(rename = "suspended")]
    Suspended,
    #[serde(rename = "releasing")]
    Releasing,
    #[serde(rename = "released")]
    Released,
}

impl Default for Status {
    fn default() -> Status {
        Self::PendingPayment
    }
}
