1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Ticketpark\SaferpayJson\Request\Container; |
6
|
|
|
|
7
|
|
|
use JMS\Serializer\Annotation\SerializedName; |
8
|
|
|
use JMS\Serializer\Annotation\Type; |
9
|
|
|
|
10
|
|
|
final class Address |
11
|
|
|
{ |
12
|
|
|
public const GENDER_MALE = 'MALE'; |
13
|
|
|
public const GENDER_FEMALE = 'FEMALE'; |
14
|
|
|
public const GENDER_DIVERSE = 'DIVERSE'; |
15
|
|
|
public const GENDER_COMPANY = 'COMPANY'; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @var string|null |
19
|
|
|
* @SerializedName("FirstName") |
20
|
|
|
*/ |
21
|
|
|
private $firstName; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var string|null |
25
|
|
|
* @SerializedName("LastName") |
26
|
|
|
*/ |
27
|
|
|
private $lastName; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var string|null |
31
|
|
|
* @SerializedName("Company") |
32
|
|
|
*/ |
33
|
|
|
private $company; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @var string|null |
37
|
|
|
* @SerializedName("Gender") |
38
|
|
|
*/ |
39
|
|
|
private $gender; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var string|null |
43
|
|
|
* @SerializedName("Street") |
44
|
|
|
*/ |
45
|
|
|
private $street; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var string|null |
49
|
|
|
* @SerializedName("Zip") |
50
|
|
|
*/ |
51
|
|
|
private $zip; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string|null |
55
|
|
|
* @SerializedName("City") |
56
|
|
|
*/ |
57
|
|
|
private $city; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var string|null |
61
|
|
|
* @SerializedName("CountryCode") |
62
|
|
|
*/ |
63
|
|
|
private $countryCode; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @var string|null |
67
|
|
|
* @SerializedName("Email") |
68
|
|
|
*/ |
69
|
|
|
private $email; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @var \DateTime|null |
73
|
|
|
* @SerializedName("DateOfBirth") |
74
|
|
|
*/ |
75
|
|
|
private $dateOfBirth; |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @var string|null |
79
|
|
|
* @SerializedName("LegalForm") |
80
|
|
|
*/ |
81
|
|
|
private $legalForm; |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @var string|null |
85
|
|
|
* @SerializedName("Street2") |
86
|
|
|
*/ |
87
|
|
|
private $street2; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @var string|null |
91
|
|
|
* @SerializedName("CountrySubdivisionCode") |
92
|
|
|
*/ |
93
|
|
|
private $countrySubdivisionCode; |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @var string|null |
97
|
|
|
* @SerializedName("Phone") |
98
|
|
|
*/ |
99
|
|
|
private $phone; |
100
|
|
|
|
101
|
|
|
public function getFirstName(): ?string |
102
|
|
|
{ |
103
|
|
|
return $this->firstName; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
public function setFirstName(?string $firstName): self |
107
|
|
|
{ |
108
|
|
|
$this->firstName = $firstName; |
109
|
|
|
|
110
|
|
|
return $this; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
public function getLastName(): ?string |
114
|
|
|
{ |
115
|
|
|
return $this->lastName; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
public function setLastName(?string $lastName): self |
119
|
|
|
{ |
120
|
|
|
$this->lastName = $lastName; |
121
|
|
|
|
122
|
|
|
return $this; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
public function getCompany(): ?string |
126
|
|
|
{ |
127
|
|
|
return $this->company; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
public function setCompany(?string $company): self |
131
|
|
|
{ |
132
|
|
|
$this->company = $company; |
133
|
|
|
|
134
|
|
|
return $this; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
public function getGender(): ?string |
138
|
|
|
{ |
139
|
|
|
return $this->gender; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
public function setGender(?string $gender): self |
143
|
|
|
{ |
144
|
|
|
$this->gender = $gender; |
145
|
|
|
|
146
|
|
|
return $this; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
public function getStreet(): ?string |
150
|
|
|
{ |
151
|
|
|
return $this->street; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
public function setStreet(?string $street): self |
155
|
|
|
{ |
156
|
|
|
$this->street = $street; |
157
|
|
|
|
158
|
|
|
return $this; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
public function getZip(): ?string |
162
|
|
|
{ |
163
|
|
|
return $this->zip; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
public function setZip(?string $zip): self |
167
|
|
|
{ |
168
|
|
|
$this->zip = $zip; |
169
|
|
|
|
170
|
|
|
return $this; |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
public function getCity(): ?string |
174
|
|
|
{ |
175
|
|
|
return $this->city; |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
public function setCity(?string $city): self |
179
|
|
|
{ |
180
|
|
|
$this->city = $city; |
181
|
|
|
|
182
|
|
|
return $this; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
public function getCountryCode(): ?string |
186
|
|
|
{ |
187
|
|
|
return $this->countryCode; |
188
|
|
|
} |
189
|
|
|
|
190
|
|
|
public function setCountryCode(?string $countryCode): self |
191
|
|
|
{ |
192
|
|
|
$this->countryCode = $countryCode; |
193
|
|
|
|
194
|
|
|
return $this; |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
public function getEmail(): ?string |
198
|
|
|
{ |
199
|
|
|
return $this->email; |
200
|
|
|
} |
201
|
|
|
|
202
|
|
|
public function setEmail(?string $email): self |
203
|
|
|
{ |
204
|
|
|
$this->email = $email; |
205
|
|
|
|
206
|
|
|
return $this; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
public function getDateOfBirth(): ?\DateTime |
210
|
|
|
{ |
211
|
|
|
return $this->dateOfBirth; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
public function setDateOfBirth(?\DateTime $dateOfBirth): self |
215
|
|
|
{ |
216
|
|
|
$this->dateOfBirth = $dateOfBirth; |
217
|
|
|
|
218
|
|
|
return $this; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
public function getLegalForm(): ?string |
222
|
|
|
{ |
223
|
|
|
return $this->legalForm; |
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
public function setLegalForm(?string $legalForm): self |
227
|
|
|
{ |
228
|
|
|
$this->legalForm = $legalForm; |
229
|
|
|
|
230
|
|
|
return $this; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
public function getStreet2(): ?string |
234
|
|
|
{ |
235
|
|
|
return $this->street2; |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
public function setStreet2(?string $street2): self |
239
|
|
|
{ |
240
|
|
|
$this->street2 = $street2; |
241
|
|
|
|
242
|
|
|
return $this; |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
public function getCountrySubdivisionCode(): ?string |
246
|
|
|
{ |
247
|
|
|
return $this->countrySubdivisionCode; |
248
|
|
|
} |
249
|
|
|
|
250
|
|
|
public function setCountrySubdivisionCode(?string $countrySubdivisionCode): self |
251
|
|
|
{ |
252
|
|
|
$this->countrySubdivisionCode = $countrySubdivisionCode; |
253
|
|
|
|
254
|
|
|
return $this; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
public function getPhone(): ?string |
258
|
|
|
{ |
259
|
|
|
return $this->phone; |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
public function setPhone(?string $phone): self |
263
|
|
|
{ |
264
|
|
|
$this->phone = $phone; |
265
|
|
|
|
266
|
|
|
return $this; |
267
|
|
|
} |
268
|
|
|
} |
269
|
|
|
|