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

/// GetWhatsAppNumberKycForm200ResponseReusable : Present when this account already has an approved verification for the country that can be reused (skip the form).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetWhatsAppNumberKycForm200ResponseReusable {
    #[serde(rename = "available", skip_serializing_if = "Option::is_none")]
    pub available: Option<bool>,
    #[serde(rename = "fromPhoneNumber", skip_serializing_if = "Option::is_none")]
    pub from_phone_number: Option<String>,
    /// Human-readable summary of the verification on file (field labels + values, plus the address as one line). Best-effort — may be empty if the provider lookup fails.
    #[serde(rename = "details", skip_serializing_if = "Option::is_none")]
    pub details: Option<Vec<models::GetWhatsAppNumberKycForm200ResponseReusableDetailsInner>>,
}

impl GetWhatsAppNumberKycForm200ResponseReusable {
    /// Present when this account already has an approved verification for the country that can be reused (skip the form).
    pub fn new() -> GetWhatsAppNumberKycForm200ResponseReusable {
        GetWhatsAppNumberKycForm200ResponseReusable {
            available: None,
            from_phone_number: None,
            details: None,
        }
    }
}
