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
#[derive(Debug)]
pub struct DomainInfo {
    pub zone_contact: Option<String>,
}

#[derive(Debug)]
pub enum PaymentInfo {
    Prepaid(u32),
    Card { id: u32, cvc: String },
}

#[derive(Debug)]
pub struct DomainUpdate {
    pub remove_all_ns: bool,
    pub new_master_ns: Vec<String>,
}

#[derive(Debug)]
pub struct ContactInfo {
    pub statuses: Vec<ContactStatus>,
    pub mobile: Option<super::Phone>,
    pub sid: Option<String>,
    pub auto_update_from_national_registry: bool,
    pub paper_invoices: bool,
}

#[derive(Debug)]
pub struct ContactCreate {
    pub mobile: Option<super::Phone>,
    pub sid: Option<String>,
    pub auto_update_from_national_registry: bool,
    pub paper_invoices: bool,
    pub lang: Option<String>,
}

#[derive(Debug)]
pub struct ContactUpdate {
    pub mobile: Option<super::Phone>,
    pub auto_update_from_national_registry: Option<bool>,
    pub paper_invoices: Option<bool>,
    pub lang: Option<String>,
    pub password: String,
}

#[derive(Debug)]
pub enum ContactStatus {
    Ok,
    OkUnconfirmed,
    PendingCreate,
    ServerExpired,
    ServerSuspended,
}

#[derive(Debug)]
pub struct HostInfo {
    pub zone_contact: Option<String>,
}