use serde::Deserialize;
use super::common::CountryInfo;

#[derive(Debug, Clone, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct PhoneValidationResponse {
    pub is_valid: Option<bool>,
    pub e164_format: Option<String>,
    pub international_format: Option<String>,
    pub national_format: Option<String>,
    pub line_type: Option<String>,
    pub location: Option<String>,
    pub country: Option<CountryInfo>,
}

#[derive(Debug, Clone, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct EmailVerificationResponse {
    pub input_data: Option<String>,
    pub is_valid: Option<bool>,
    pub is_syntax_valid: Option<bool>,
    pub is_mail_server_defined: Option<bool>,
    pub is_known_spammer_domain: Option<bool>,
    pub is_disposable: Option<bool>,
    pub is_valid_for_receiving: Option<bool>,
}
