1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Pagantis\OrdersApiClient\Model\Order\User; |
4
|
|
|
|
5
|
|
|
use Pagantis\OrdersApiClient\Model\AbstractModel; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class Address |
9
|
|
|
* @package Pagantis\OrdersApiClient\Model\Order\User |
10
|
|
|
*/ |
11
|
|
|
class Address extends AbstractModel |
12
|
|
|
{ |
13
|
|
|
/** |
14
|
|
|
* @var string $address the street name with the address details. |
15
|
|
|
*/ |
16
|
|
|
protected $address; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var string $city the city name |
20
|
|
|
*/ |
21
|
|
|
protected $city; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var string $countryCode the country code ES, FR, PT, IT |
25
|
|
|
*/ |
26
|
|
|
protected $countryCode; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @var string $fullName the full name of the user, including 2 sur names |
30
|
|
|
*/ |
31
|
|
|
protected $fullName; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var string $zipCode $the zipCode of the address. |
35
|
|
|
*/ |
36
|
|
|
protected $zipCode; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var string $dni the DNI of the user. |
40
|
|
|
*/ |
41
|
|
|
protected $dni; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var string $fixPhone Fix Phone of the user |
45
|
|
|
*/ |
46
|
|
|
protected $fixPhone; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @var string $mobilePhone Mobile phone of the user |
50
|
|
|
*/ |
51
|
|
|
protected $mobilePhone; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string $taxId Tax Id for italian orders. |
55
|
|
|
*/ |
56
|
|
|
protected $taxId; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var string $nationalId National Id for italian orders. |
60
|
|
|
*/ |
61
|
|
|
protected $nationalId; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @return string |
65
|
|
|
*/ |
66
|
|
|
public function getAddress() |
67
|
|
|
{ |
68
|
|
|
return $this->address; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @param string $address |
73
|
|
|
* |
74
|
|
|
* @return Address |
75
|
|
|
*/ |
76
|
|
|
public function setAddress($address) |
77
|
|
|
{ |
78
|
|
|
$this->address = $address; |
79
|
|
|
|
80
|
|
|
return $this; |
81
|
|
|
} |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* @return string |
85
|
|
|
*/ |
86
|
|
|
public function getCity() |
87
|
|
|
{ |
88
|
|
|
return $this->city; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* @param string $city |
93
|
|
|
* |
94
|
|
|
* @return Address |
95
|
|
|
*/ |
96
|
|
|
public function setCity($city) |
97
|
|
|
{ |
98
|
|
|
$this->city = $city; |
99
|
|
|
|
100
|
|
|
return $this; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @return string |
105
|
|
|
*/ |
106
|
|
|
public function getCountryCode() |
107
|
|
|
{ |
108
|
|
|
return $this->countryCode; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @param string $countryCode |
113
|
|
|
* |
114
|
|
|
* @return Address |
115
|
|
|
*/ |
116
|
|
|
public function setCountryCode($countryCode) |
117
|
|
|
{ |
118
|
|
|
$this->countryCode = $countryCode; |
119
|
|
|
|
120
|
|
|
return $this; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @return string |
125
|
|
|
*/ |
126
|
|
|
public function getFullName() |
127
|
|
|
{ |
128
|
|
|
return $this->fullName; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* @param $fullName |
133
|
|
|
* |
134
|
|
|
* @return $this |
135
|
|
|
*/ |
136
|
|
|
public function setFullName($fullName) |
137
|
|
|
{ |
138
|
|
|
$this->fullName = $fullName; |
139
|
|
|
|
140
|
|
|
return $this; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @return string |
145
|
|
|
*/ |
146
|
|
|
public function getZipCode() |
147
|
|
|
{ |
148
|
|
|
return $this->zipCode; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* @param string $zipCode |
153
|
|
|
* |
154
|
|
|
* @return Address |
155
|
|
|
*/ |
156
|
|
|
public function setZipCode($zipCode) |
157
|
|
|
{ |
158
|
|
|
$this->zipCode = $zipCode; |
159
|
|
|
|
160
|
|
|
return $this; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* @return string |
165
|
|
|
*/ |
166
|
|
|
public function getDni() |
167
|
|
|
{ |
168
|
|
|
return $this->dni; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
/** |
172
|
|
|
* @param string $dni |
173
|
|
|
* |
174
|
|
|
* @return Address |
175
|
|
|
*/ |
176
|
|
|
public function setDni($dni) |
177
|
|
|
{ |
178
|
|
|
$this->dni = $dni; |
179
|
|
|
|
180
|
|
|
return $this; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @return string |
185
|
|
|
*/ |
186
|
|
|
public function getFixPhone() |
187
|
|
|
{ |
188
|
|
|
return $this->fixPhone; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @param string $fixPhone |
193
|
|
|
* |
194
|
|
|
* @return Address |
195
|
|
|
*/ |
196
|
|
|
public function setFixPhone($fixPhone) |
197
|
|
|
{ |
198
|
|
|
$this->fixPhone = $fixPhone; |
199
|
|
|
|
200
|
|
|
return $this; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @return string |
205
|
|
|
*/ |
206
|
|
|
public function getMobilePhone() |
207
|
|
|
{ |
208
|
|
|
return $this->mobilePhone; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* @param string $mobilePhone |
213
|
|
|
* |
214
|
|
|
* @return Address |
215
|
|
|
*/ |
216
|
|
|
public function setMobilePhone($mobilePhone) |
217
|
|
|
{ |
218
|
|
|
$this->mobilePhone = $mobilePhone; |
219
|
|
|
|
220
|
|
|
return $this; |
221
|
|
|
} |
222
|
|
|
/** |
223
|
|
|
* @return string |
224
|
|
|
*/ |
225
|
|
|
public function getTaxId() |
226
|
|
|
{ |
227
|
|
|
return $this->taxId; |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
/** |
231
|
|
|
* @param string $taxId |
232
|
|
|
* |
233
|
|
|
* @return Address |
234
|
|
|
*/ |
235
|
|
|
public function setTaxId($taxId) |
236
|
|
|
{ |
237
|
|
|
$this->taxId = $taxId; |
238
|
|
|
|
239
|
|
|
return $this; |
240
|
|
|
} |
241
|
|
|
|
242
|
|
|
/** |
243
|
|
|
* @return string |
244
|
|
|
*/ |
245
|
|
|
public function getNationalId() |
246
|
|
|
{ |
247
|
|
|
return $this->nationalId; |
248
|
|
|
} |
249
|
|
|
|
250
|
|
|
/** |
251
|
|
|
* @param string $nationalId |
252
|
|
|
* |
253
|
|
|
* @return Address |
254
|
|
|
*/ |
255
|
|
|
public function setNationalId($nationalId) |
256
|
|
|
{ |
257
|
|
|
$this->nationalId = $nationalId; |
258
|
|
|
|
259
|
|
|
return $this; |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
} |
263
|
|
|
|