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 PayerProfile |
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 bool|null |
19
|
|
|
* @SerializedName("HasAccount") |
20
|
|
|
*/ |
21
|
|
|
private $hasAccount; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var bool|null |
25
|
|
|
* @SerializedName("HasPassword") |
26
|
|
|
*/ |
27
|
|
|
private $hasPassword; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var bool|null |
31
|
|
|
* @SerializedName("PasswordForgotten") |
32
|
|
|
*/ |
33
|
|
|
private $passwordForgotten; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @var string|null |
37
|
|
|
* @SerializedName("FirstName") |
38
|
|
|
*/ |
39
|
|
|
private $firstName; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var string|null |
43
|
|
|
* @SerializedName("LastName") |
44
|
|
|
*/ |
45
|
|
|
private $lastName; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var string|null |
49
|
|
|
* @SerializedName("Company") |
50
|
|
|
*/ |
51
|
|
|
private $company; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string|null |
55
|
|
|
* @SerializedName("DateOfBirth") |
56
|
|
|
*/ |
57
|
|
|
private $dateOfBirth; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var \DateTime|null |
61
|
|
|
* @SerializedName("LastLoginDate") |
62
|
|
|
* @Type("DateTime<'Y-m-d\TH:i:s.uT'>") |
63
|
|
|
*/ |
64
|
|
|
private $lastLoginDate; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @var string|null |
68
|
|
|
* @SerializedName("Gender") |
69
|
|
|
*/ |
70
|
|
|
private $gender; |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @var \DateTime|null |
74
|
|
|
* @SerializedName("CreationDate") |
75
|
|
|
* @Type("DateTime<'Y-m-d\TH:i:s.uT'>") |
76
|
|
|
*/ |
77
|
|
|
private $creationDate; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @var \DateTime|null |
81
|
|
|
* @SerializedName("PasswordLastChangeDate") |
82
|
|
|
* @Type("DateTime<'Y-m-d\TH:i:s.uT'>") |
83
|
|
|
*/ |
84
|
|
|
private $passwordLastChangeDate; |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @var string|null |
88
|
|
|
* @SerializedName("Email") |
89
|
|
|
*/ |
90
|
|
|
private $email; |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @var string|null |
94
|
|
|
* @SerializedName("SecondaryEmail") |
95
|
|
|
*/ |
96
|
|
|
private $secondaryEmail; |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @var Phone|null |
100
|
|
|
* @SerializedName("Phone") |
101
|
|
|
*/ |
102
|
|
|
private $phone; |
103
|
|
|
|
104
|
|
|
public function getHasAccount(): ?bool |
105
|
|
|
{ |
106
|
|
|
return $this->hasAccount; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
public function setHasAccount(?bool $hasAccount): self |
110
|
|
|
{ |
111
|
|
|
$this->hasAccount = $hasAccount; |
112
|
|
|
|
113
|
|
|
return $this; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
public function getHasPassword(): ?bool |
117
|
|
|
{ |
118
|
|
|
return $this->hasPassword; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
public function setHasPassword(?bool $hasPassword): self |
122
|
|
|
{ |
123
|
|
|
$this->hasPassword = $hasPassword; |
124
|
|
|
|
125
|
|
|
return $this; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
public function getPasswordForgotten(): ?bool |
129
|
|
|
{ |
130
|
|
|
return $this->passwordForgotten; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
public function setPasswordForgotten(?bool $passwordForgotten): self |
134
|
|
|
{ |
135
|
|
|
$this->passwordForgotten = $passwordForgotten; |
136
|
|
|
|
137
|
|
|
return $this; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
public function getFirstName(): ?string |
141
|
|
|
{ |
142
|
|
|
return $this->firstName; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
public function setFirstName(?string $firstName): self |
146
|
|
|
{ |
147
|
|
|
$this->firstName = $firstName; |
148
|
|
|
|
149
|
|
|
return $this; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
public function getLastName(): ?string |
153
|
|
|
{ |
154
|
|
|
return $this->lastName; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
public function setLastName(?string $lastName): self |
158
|
|
|
{ |
159
|
|
|
$this->lastName = $lastName; |
160
|
|
|
|
161
|
|
|
return $this; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
public function getCompany(): ?string |
165
|
|
|
{ |
166
|
|
|
return $this->company; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
public function setCompany(?string $company): self |
170
|
|
|
{ |
171
|
|
|
$this->company = $company; |
172
|
|
|
|
173
|
|
|
return $this; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
public function getDateOfBirth(): ?string |
177
|
|
|
{ |
178
|
|
|
return $this->dateOfBirth; |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
public function setDateOfBirth(?string $dateOfBirth): self |
182
|
|
|
{ |
183
|
|
|
$this->dateOfBirth = $dateOfBirth; |
184
|
|
|
|
185
|
|
|
return $this; |
186
|
|
|
} |
187
|
|
|
|
188
|
|
|
public function getLastLoginDate(): ?\DateTime |
189
|
|
|
{ |
190
|
|
|
return $this->lastLoginDate; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
public function setLastLoginDate(?\DateTime $lastLoginDate): self |
194
|
|
|
{ |
195
|
|
|
$this->lastLoginDate = $lastLoginDate; |
196
|
|
|
|
197
|
|
|
return $this; |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
public function getGender(): ?string |
201
|
|
|
{ |
202
|
|
|
return $this->gender; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
public function setGender(?string $gender): self |
206
|
|
|
{ |
207
|
|
|
$this->gender = $gender; |
208
|
|
|
|
209
|
|
|
return $this; |
210
|
|
|
} |
211
|
|
|
|
212
|
|
|
public function getCreationDate(): ?\DateTime |
213
|
|
|
{ |
214
|
|
|
return $this->creationDate; |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
public function setCreationDate(?\DateTime $creationDate): self |
218
|
|
|
{ |
219
|
|
|
$this->creationDate = $creationDate; |
220
|
|
|
|
221
|
|
|
return $this; |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
public function getPasswordLastChangeDate(): ?\DateTime |
225
|
|
|
{ |
226
|
|
|
return $this->passwordLastChangeDate; |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
public function setPasswordLastChangeDate(?\DateTime $passwordLastChangeDate): self |
230
|
|
|
{ |
231
|
|
|
$this->passwordLastChangeDate = $passwordLastChangeDate; |
232
|
|
|
|
233
|
|
|
return $this; |
234
|
|
|
} |
235
|
|
|
|
236
|
|
|
public function getEmail(): ?string |
237
|
|
|
{ |
238
|
|
|
return $this->email; |
239
|
|
|
} |
240
|
|
|
|
241
|
|
|
public function setEmail(?string $email): self |
242
|
|
|
{ |
243
|
|
|
$this->email = $email; |
244
|
|
|
|
245
|
|
|
return $this; |
246
|
|
|
} |
247
|
|
|
|
248
|
|
|
public function getSecondaryEmail(): ?string |
249
|
|
|
{ |
250
|
|
|
return $this->secondaryEmail; |
251
|
|
|
} |
252
|
|
|
|
253
|
|
|
public function setSecondaryEmail(?string $secondaryEmail): self |
254
|
|
|
{ |
255
|
|
|
$this->secondaryEmail = $secondaryEmail; |
256
|
|
|
|
257
|
|
|
return $this; |
258
|
|
|
} |
259
|
|
|
|
260
|
|
|
public function getPhone(): ?Phone |
261
|
|
|
{ |
262
|
|
|
return $this->phone; |
263
|
|
|
} |
264
|
|
|
|
265
|
|
|
public function setPhone(?Phone $phone): self |
266
|
|
|
{ |
267
|
|
|
$this->phone = $phone; |
268
|
|
|
|
269
|
|
|
return $this; |
270
|
|
|
} |
271
|
|
|
} |
272
|
|
|
|