1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace Ticketpark\SaferpayJson\Response\Container; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation\SerializedName; |
6
|
|
|
use JMS\Serializer\Annotation\Type; |
7
|
|
|
|
8
|
|
|
final class Address |
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 string|null |
17
|
|
|
* @SerializedName("FirstName") |
18
|
|
|
* @Type("string") |
19
|
|
|
*/ |
20
|
|
|
private $firstName; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @var string|null |
24
|
|
|
* @SerializedName("LastName") |
25
|
|
|
* @Type("string") |
26
|
|
|
*/ |
27
|
|
|
private $lastName; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var string|null |
31
|
|
|
* @SerializedName("Company") |
32
|
|
|
* @Type("string") |
33
|
|
|
*/ |
34
|
|
|
private $company; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var string|null |
38
|
|
|
* @SerializedName("Gender") |
39
|
|
|
* @Type("string") |
40
|
|
|
*/ |
41
|
|
|
private $gender; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string|null |
45
|
|
|
* @SerializedName("Street") |
46
|
|
|
* @Type("string") |
47
|
|
|
*/ |
48
|
|
|
private $street; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var string|null |
52
|
|
|
* @SerializedName("Zip") |
53
|
|
|
* @Type("string") |
54
|
|
|
*/ |
55
|
|
|
private $zip; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var string|null |
59
|
|
|
* @SerializedName("City") |
60
|
|
|
* @Type("string") |
61
|
|
|
*/ |
62
|
|
|
private $city; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var string|null |
66
|
|
|
* @SerializedName("CountryCode") |
67
|
|
|
* @Type("string") |
68
|
|
|
*/ |
69
|
|
|
private $countryCode; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @var string|null |
73
|
|
|
* @SerializedName("Email") |
74
|
|
|
* @Type("string") |
75
|
|
|
*/ |
76
|
|
|
private $email; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @var \DateTime|null |
80
|
|
|
* @SerializedName("DateOfBirth") |
81
|
|
|
* @Type("string") |
82
|
|
|
*/ |
83
|
|
|
private $dateOfBirth; |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @var string|null |
87
|
|
|
* @SerializedName("LegalForm") |
88
|
|
|
* @Type("string") |
89
|
|
|
*/ |
90
|
|
|
private $legalForm; |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @var string|null |
94
|
|
|
* @SerializedName("Street2") |
95
|
|
|
* @Type("string") |
96
|
|
|
*/ |
97
|
|
|
private $street2; |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @var string|null |
101
|
|
|
* @SerializedName("CountrySubdivisionCode") |
102
|
|
|
* @Type("string") |
103
|
|
|
*/ |
104
|
|
|
private $countrySubdivisionCode; |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @var string|null |
108
|
|
|
* @SerializedName("Phone") |
109
|
|
|
* @Type("string") |
110
|
|
|
*/ |
111
|
|
|
private $phone; |
112
|
|
|
|
113
|
|
|
public function getFirstName(): ?string |
114
|
|
|
{ |
115
|
|
|
return $this->firstName; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
public function getLastName(): ?string |
119
|
|
|
{ |
120
|
|
|
return $this->lastName; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
public function getCompany(): ?string |
124
|
|
|
{ |
125
|
|
|
return $this->company; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
public function getGender(): ?string |
129
|
|
|
{ |
130
|
|
|
return $this->gender; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
public function getStreet(): ?string |
134
|
|
|
{ |
135
|
|
|
return $this->street; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
public function getZip(): ?string |
139
|
|
|
{ |
140
|
|
|
return $this->zip; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
public function getCity(): ?string |
144
|
|
|
{ |
145
|
|
|
return $this->city; |
146
|
|
|
} |
147
|
|
|
|
148
|
|
|
public function getCountryCode(): ?string |
149
|
|
|
{ |
150
|
|
|
return $this->countryCode; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
public function getEmail(): ?string |
154
|
|
|
{ |
155
|
|
|
return $this->email; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
public function getDateOfBirth(): ?\DateTime |
159
|
|
|
{ |
160
|
|
|
return $this->dateOfBirth; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
public function getLegalForm(): ?string |
164
|
|
|
{ |
165
|
|
|
return $this->legalForm; |
166
|
|
|
} |
167
|
|
|
|
168
|
|
|
public function getStreet2(): ?string |
169
|
|
|
{ |
170
|
|
|
return $this->street2; |
171
|
|
|
} |
172
|
|
|
|
173
|
|
|
public function getCountrySubdivisionCode(): ?string |
174
|
|
|
{ |
175
|
|
|
return $this->countrySubdivisionCode; |
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
public function getPhone(): ?string |
179
|
|
|
{ |
180
|
|
|
return $this->phone; |
181
|
|
|
} |
182
|
|
|
} |
183
|
|
|
|