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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
#[allow(unused_imports)]
use serde_json::Value;
#[derive(Debug, Serialize, Deserialize)]
pub struct IbcustentityinfoAddress {
#[serde(rename = "city")]
city: Option<String>,
#[serde(rename = "compact")]
compact: Option<String>,
#[serde(rename = "country")]
country: Option<String>,
#[serde(rename = "countryCode")]
country_code: Option<String>,
#[serde(rename = "postalCode")]
postal_code: Option<String>,
#[serde(rename = "state")]
state: Option<String>,
#[serde(rename = "street")]
street: Option<String>,
#[serde(rename = "street2")]
street2: Option<String>
}
impl IbcustentityinfoAddress {
pub fn new() -> IbcustentityinfoAddress {
IbcustentityinfoAddress {
city: None,
compact: None,
country: None,
country_code: None,
postal_code: None,
state: None,
street: None,
street2: None
}
}
pub fn set_city(&mut self, city: String) {
self.city = Some(city);
}
pub fn with_city(mut self, city: String) -> IbcustentityinfoAddress {
self.city = Some(city);
self
}
pub fn city(&self) -> Option<&String> {
self.city.as_ref()
}
pub fn reset_city(&mut self) {
self.city = None;
}
pub fn set_compact(&mut self, compact: String) {
self.compact = Some(compact);
}
pub fn with_compact(mut self, compact: String) -> IbcustentityinfoAddress {
self.compact = Some(compact);
self
}
pub fn compact(&self) -> Option<&String> {
self.compact.as_ref()
}
pub fn reset_compact(&mut self) {
self.compact = None;
}
pub fn set_country(&mut self, country: String) {
self.country = Some(country);
}
pub fn with_country(mut self, country: String) -> IbcustentityinfoAddress {
self.country = Some(country);
self
}
pub fn country(&self) -> Option<&String> {
self.country.as_ref()
}
pub fn reset_country(&mut self) {
self.country = None;
}
pub fn set_country_code(&mut self, country_code: String) {
self.country_code = Some(country_code);
}
pub fn with_country_code(mut self, country_code: String) -> IbcustentityinfoAddress {
self.country_code = Some(country_code);
self
}
pub fn country_code(&self) -> Option<&String> {
self.country_code.as_ref()
}
pub fn reset_country_code(&mut self) {
self.country_code = None;
}
pub fn set_postal_code(&mut self, postal_code: String) {
self.postal_code = Some(postal_code);
}
pub fn with_postal_code(mut self, postal_code: String) -> IbcustentityinfoAddress {
self.postal_code = Some(postal_code);
self
}
pub fn postal_code(&self) -> Option<&String> {
self.postal_code.as_ref()
}
pub fn reset_postal_code(&mut self) {
self.postal_code = None;
}
pub fn set_state(&mut self, state: String) {
self.state = Some(state);
}
pub fn with_state(mut self, state: String) -> IbcustentityinfoAddress {
self.state = Some(state);
self
}
pub fn state(&self) -> Option<&String> {
self.state.as_ref()
}
pub fn reset_state(&mut self) {
self.state = None;
}
pub fn set_street(&mut self, street: String) {
self.street = Some(street);
}
pub fn with_street(mut self, street: String) -> IbcustentityinfoAddress {
self.street = Some(street);
self
}
pub fn street(&self) -> Option<&String> {
self.street.as_ref()
}
pub fn reset_street(&mut self) {
self.street = None;
}
pub fn set_street2(&mut self, street2: String) {
self.street2 = Some(street2);
}
pub fn with_street2(mut self, street2: String) -> IbcustentityinfoAddress {
self.street2 = Some(street2);
self
}
pub fn street2(&self) -> Option<&String> {
self.street2.as_ref()
}
pub fn reset_street2(&mut self) {
self.street2 = None;
}
}