/*
 * 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 CheckPhoneNumberPortability200ResponseResultsInner {
    #[serde(rename = "phoneNumber", skip_serializing_if = "Option::is_none")]
    pub phone_number: Option<String>,
    #[serde(rename = "portable", skip_serializing_if = "Option::is_none")]
    pub portable: Option<bool>,
    /// Qualifies for the carrier's accelerated FastPort lane.
    #[serde(rename = "fastPortable", skip_serializing_if = "Option::is_none")]
    pub fast_portable: Option<bool>,
    /// Carrier reason when not portable; null when portable.
    #[serde(
        rename = "notPortableReason",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub not_portable_reason: Option<Option<String>>,
}

impl CheckPhoneNumberPortability200ResponseResultsInner {
    pub fn new() -> CheckPhoneNumberPortability200ResponseResultsInner {
        CheckPhoneNumberPortability200ResponseResultsInner {
            phone_number: None,
            portable: None,
            fast_portable: None,
            not_portable_reason: None,
        }
    }
}
