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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#[derive(Debug, Deserialize)]
pub struct EPPBalance {
#[serde(rename = "{http://www.unitedtld.com/epp/finance-1.0}balance")]
pub balance: String,
#[serde(
rename = "{http://www.unitedtld.com/epp/finance-1.0}threshold",
default
)]
pub thresholds: Vec<EPPBalanceThreshold>,
}
#[derive(Debug, Deserialize)]
pub struct EPPBalanceThreshold {
#[serde(rename = "$attr:op", default)]
pub threshold_type: String,
#[serde(rename = "$value")]
pub threshold: String,
}
#[derive(Debug, Deserialize)]
pub struct EPPChargeCheckData {
#[serde(rename = "{http://www.unitedtld.com/epp/charge-1.0}cd")]
pub domains: Vec<EPPChargeCheckDatum>,
}
#[derive(Debug, Deserialize)]
pub struct EPPChargeCheckDatum {
#[serde(rename = "{http://www.unitedtld.com/epp/charge-1.0}name")]
pub name: String,
#[serde(rename = "{http://www.unitedtld.com/epp/charge-1.0}set")]
pub sets: Vec<EPPChargeSet>,
}
#[derive(Debug, Deserialize, Serialize)]
pub struct EPPChargeData {
#[serde(rename = "{http://www.unitedtld.com/epp/charge-1.0}charge:set")]
pub sets: Vec<EPPChargeSet>,
}
#[derive(Debug, Deserialize, Serialize)]
pub struct EPPChargeSet {
#[serde(rename = "{http://www.unitedtld.com/epp/charge-1.0}charge:category")]
pub category: EPPChargeCategory,
#[serde(rename = "{http://www.unitedtld.com/epp/charge-1.0}charge:type")]
pub set_type: EPPChargeType,
#[serde(rename = "{http://www.unitedtld.com/epp/charge-1.0}charge:amount")]
pub amount: Vec<EPPChargeAmount>,
}
#[derive(Debug, Deserialize, Serialize)]
pub struct EPPChargeCategory {
#[serde(rename = "$value")]
pub value: String,
#[serde(
rename = "$attr:name",
skip_serializing_if = "Option::is_none",
default
)]
pub name: Option<String>,
}
#[derive(Debug, Deserialize, Serialize)]
pub struct EPPChargeType {
#[serde(rename = "$value")]
pub value: EPPChargeTypes,
#[serde(
rename = "$attr:name",
skip_serializing_if = "Option::is_none",
default
)]
pub name: Option<String>,
}
#[derive(Debug, Deserialize, Serialize)]
pub enum EPPChargeTypes {
#[serde(rename = "fee")]
Fee,
#[serde(rename = "price")]
Price,
#[serde(rename = "custom")]
Custom,
}
#[derive(Debug, Deserialize, Serialize)]
pub struct EPPChargeAmount {
#[serde(rename = "$value")]
pub value: String,
#[serde(
rename = "$attr:name",
skip_serializing_if = "Option::is_none",
default
)]
pub name: Option<String>,
#[serde(rename = "$attr:command")]
pub command: EPPChargeCommand,
}
#[derive(Debug, Deserialize, Serialize)]
pub enum EPPChargeCommand {
#[serde(rename = "check")]
Check,
#[serde(rename = "create")]
Create,
#[serde(rename = "delete")]
Delete,
#[serde(rename = "info")]
Info,
#[serde(rename = "renew")]
Renew,
#[serde(rename = "transfer")]
Transfer,
#[serde(rename = "update")]
Update,
#[serde(rename = "custom")]
Custom,
}