/*
 * 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 FetchGoogleBusinessVerificationOptions200ResponseOptionsInner {
    #[serde(rename = "verificationMethod", skip_serializing_if = "Option::is_none")]
    pub verification_method: Option<VerificationMethod>,
    /// Present for PHONE_CALL / SMS.
    #[serde(rename = "phoneNumber", skip_serializing_if = "Option::is_none")]
    pub phone_number: Option<String>,
}

impl FetchGoogleBusinessVerificationOptions200ResponseOptionsInner {
    pub fn new() -> FetchGoogleBusinessVerificationOptions200ResponseOptionsInner {
        FetchGoogleBusinessVerificationOptions200ResponseOptionsInner {
            verification_method: None,
            phone_number: None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum VerificationMethod {
    #[serde(rename = "ADDRESS")]
    Address,
    #[serde(rename = "EMAIL")]
    Email,
    #[serde(rename = "PHONE_CALL")]
    PhoneCall,
    #[serde(rename = "SMS")]
    Sms,
    #[serde(rename = "AUTO")]
    Auto,
    #[serde(rename = "VETTED_PARTNER")]
    VettedPartner,
}

impl Default for VerificationMethod {
    fn default() -> VerificationMethod {
        Self::Address
    }
}
