1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//! `email-isv` data models for GoHighLevel API V2 (4 types).
//!
//! Generated from HighLevel's official OpenAPI spec for the
//! **Email Isv** module. Every endpoint that uses these types, with its
//! parameters, required scopes and enum values, is documented in the
//! [`email-isv` API reference](https://github.com/Shahroz/ghl-rs/blob/main/docs/api/email-isv.md).
//!
//! Enable with `features = ["email-isv"]`.
// @generated by xtask/generate_models.py — do not edit by hand.
// Source: https://github.com/GoHighLevel/highlevel-api-docs
// Doc comments are HighLevel's own field descriptions, reflowed verbatim, so
// they aren't held to rustdoc's markdown conventions.
#![allow(
missing_docs,
clippy::doc_lazy_continuation,
clippy::doc_overindented_list_items
)]
use serde::{Deserialize, Serialize};
/// `EmailNotVerifiedResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct EmailNotVerifiedResponseDto {
/// Email verification not processed
/// Required by the API.
pub verified: bool,
/// Email verification failure message
#[serde(default, skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
/// Email address
#[serde(default, skip_serializing_if = "Option::is_none")]
pub address: Option<String>,
}
/// `EmailVerifiedResponseDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct EmailVerifiedResponseDto {
/// Reason for email verification failure
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub reason: Vec<String>,
/// Email verification result
/// Allowed values: `deliverable`, `undeliverable`, `do_not_send`, `unknown`, `catch_all`.
/// Required by the API.
pub result: String,
/// Risk level of email sending to bounce
/// Allowed values: `high`, `low`, `medium`, `unknown`.
/// Required by the API.
pub risk: String,
/// Email address
/// Required by the API.
pub address: String,
/// Lead Connector email verification recomendation
/// Required by the API.
#[serde(rename = "leadconnectorRecomendation")]
pub leadconnector_recomendation: LeadConnectorRecomandationDto,
}
/// `LeadConnectorRecomandationDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct LeadConnectorRecomandationDto {
/// Email verification status
#[serde(
rename = "isEmailValid",
default,
skip_serializing_if = "Option::is_none"
)]
pub is_email_valid: Option<bool>,
}
/// `VerificationBodyDto` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct VerificationBodyDto {
/// Email Verification type
/// Allowed values: `email`, `contact`.
/// Required by the API.
#[serde(rename = "type")]
pub type_: String,
/// Email Verification recepient (email address / contactId)
/// Required by the API.
pub verify: String,
}