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