|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace AcquiroPay\Models\Entities; |
|
6
|
|
|
|
|
7
|
|
|
use DateTime; |
|
8
|
|
|
|
|
9
|
|
|
class Merchant extends Entity |
|
10
|
|
|
{ |
|
11
|
|
|
/** |
|
12
|
|
|
* @var string |
|
13
|
|
|
*/ |
|
14
|
|
|
private $name; |
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* @var string |
|
18
|
|
|
*/ |
|
19
|
|
|
private $siteLanguage; |
|
20
|
|
|
|
|
21
|
|
|
/** |
|
22
|
|
|
* @var string |
|
23
|
|
|
*/ |
|
24
|
|
|
private $status; |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* @var string |
|
28
|
|
|
*/ |
|
29
|
|
|
private $type; |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* @var string |
|
33
|
|
|
*/ |
|
34
|
|
|
private $description; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @var string |
|
38
|
|
|
*/ |
|
39
|
|
|
private $address; |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* @var string |
|
43
|
|
|
*/ |
|
44
|
|
|
private $contactName; |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* @var string |
|
48
|
|
|
*/ |
|
49
|
|
|
private $email; |
|
50
|
|
|
|
|
51
|
|
|
/** |
|
52
|
|
|
* @var string |
|
53
|
|
|
*/ |
|
54
|
|
|
private $phone; |
|
55
|
|
|
|
|
56
|
|
|
/** |
|
57
|
|
|
* @var string |
|
58
|
|
|
*/ |
|
59
|
|
|
private $fax; |
|
60
|
|
|
|
|
61
|
|
|
/** |
|
62
|
|
|
* @var DateTime |
|
63
|
|
|
*/ |
|
64
|
|
|
private $registrationDate; |
|
65
|
|
|
|
|
66
|
|
|
/** |
|
67
|
|
|
* @var string |
|
68
|
|
|
*/ |
|
69
|
|
|
private $merchantDomain; |
|
70
|
|
|
|
|
71
|
|
|
/** |
|
72
|
|
|
* @var string |
|
73
|
|
|
*/ |
|
74
|
|
|
private $subdomain; |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* @var int |
|
78
|
|
|
*/ |
|
79
|
|
|
private $agentId; |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* @var Agent |
|
83
|
|
|
*/ |
|
84
|
|
|
private $agent; |
|
85
|
|
|
|
|
86
|
|
|
/** |
|
87
|
|
|
* @var int |
|
88
|
|
|
*/ |
|
89
|
|
|
private $tariffId; |
|
90
|
|
|
|
|
91
|
|
|
/** |
|
92
|
|
|
* @var Tariff |
|
93
|
|
|
*/ |
|
94
|
|
|
private $tariff; |
|
95
|
|
|
|
|
96
|
|
|
/** |
|
97
|
|
|
* @var string |
|
98
|
|
|
*/ |
|
99
|
|
|
private $userIpAccess; |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* @var string |
|
103
|
|
|
*/ |
|
104
|
|
|
private $skype; |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* @var string |
|
108
|
|
|
*/ |
|
109
|
|
|
private $vtIpAccess; |
|
110
|
|
|
|
|
111
|
|
|
/** |
|
112
|
|
|
* @return string |
|
113
|
|
|
*/ |
|
114
|
|
|
public function getName(): string |
|
115
|
|
|
{ |
|
116
|
|
|
return $this->name; |
|
117
|
|
|
} |
|
118
|
|
|
|
|
119
|
|
|
/** |
|
120
|
|
|
* @param string $name |
|
121
|
|
|
*/ |
|
122
|
|
|
public function setName(string $name) |
|
123
|
|
|
{ |
|
124
|
|
|
$this->name = $name; |
|
125
|
|
|
} |
|
126
|
|
|
|
|
127
|
|
|
/** |
|
128
|
|
|
* @return string |
|
129
|
|
|
*/ |
|
130
|
|
|
public function getSiteLanguage(): string |
|
131
|
|
|
{ |
|
132
|
|
|
return $this->siteLanguage; |
|
133
|
|
|
} |
|
134
|
|
|
|
|
135
|
|
|
/** |
|
136
|
|
|
* @param string $siteLanguage |
|
137
|
|
|
*/ |
|
138
|
|
|
public function setSiteLanguage(string $siteLanguage) |
|
139
|
|
|
{ |
|
140
|
|
|
$this->siteLanguage = $siteLanguage; |
|
141
|
|
|
} |
|
142
|
|
|
|
|
143
|
|
|
/** |
|
144
|
|
|
* @return string |
|
145
|
|
|
*/ |
|
146
|
|
|
public function getStatus(): string |
|
147
|
|
|
{ |
|
148
|
|
|
return $this->status; |
|
149
|
|
|
} |
|
150
|
|
|
|
|
151
|
|
|
/** |
|
152
|
|
|
* @param string $status |
|
153
|
|
|
*/ |
|
154
|
|
|
public function setStatus(string $status) |
|
155
|
|
|
{ |
|
156
|
|
|
$this->status = $status; |
|
157
|
|
|
} |
|
158
|
|
|
|
|
159
|
|
|
/** |
|
160
|
|
|
* @return string |
|
161
|
|
|
*/ |
|
162
|
|
|
public function getType(): string |
|
163
|
|
|
{ |
|
164
|
|
|
return $this->type; |
|
165
|
|
|
} |
|
166
|
|
|
|
|
167
|
|
|
/** |
|
168
|
|
|
* @param string $type |
|
169
|
|
|
*/ |
|
170
|
|
|
public function setType(string $type) |
|
171
|
|
|
{ |
|
172
|
|
|
$this->type = $type; |
|
173
|
|
|
} |
|
174
|
|
|
|
|
175
|
|
|
/** |
|
176
|
|
|
* @return string |
|
177
|
|
|
*/ |
|
178
|
|
|
public function getDescription(): string |
|
179
|
|
|
{ |
|
180
|
|
|
return $this->description; |
|
181
|
|
|
} |
|
182
|
|
|
|
|
183
|
|
|
/** |
|
184
|
|
|
* @param string $description |
|
185
|
|
|
*/ |
|
186
|
|
|
public function setDescription(string $description) |
|
187
|
|
|
{ |
|
188
|
|
|
$this->description = $description; |
|
189
|
|
|
} |
|
190
|
|
|
|
|
191
|
|
|
/** |
|
192
|
|
|
* @return string |
|
193
|
|
|
*/ |
|
194
|
|
|
public function getAddress(): string |
|
195
|
|
|
{ |
|
196
|
|
|
return $this->address; |
|
197
|
|
|
} |
|
198
|
|
|
|
|
199
|
|
|
/** |
|
200
|
|
|
* @param string $address |
|
201
|
|
|
*/ |
|
202
|
|
|
public function setAddress(string $address) |
|
203
|
|
|
{ |
|
204
|
|
|
$this->address = $address; |
|
205
|
|
|
} |
|
206
|
|
|
|
|
207
|
|
|
/** |
|
208
|
|
|
* @return string |
|
209
|
|
|
*/ |
|
210
|
|
|
public function getContactName(): string |
|
211
|
|
|
{ |
|
212
|
|
|
return $this->contactName; |
|
213
|
|
|
} |
|
214
|
|
|
|
|
215
|
|
|
/** |
|
216
|
|
|
* @param string $contactName |
|
217
|
|
|
*/ |
|
218
|
|
|
public function setContactName(string $contactName) |
|
219
|
|
|
{ |
|
220
|
|
|
$this->contactName = $contactName; |
|
221
|
|
|
} |
|
222
|
|
|
|
|
223
|
|
|
/** |
|
224
|
|
|
* @return string |
|
225
|
|
|
*/ |
|
226
|
|
|
public function getEmail(): string |
|
227
|
|
|
{ |
|
228
|
|
|
return $this->email; |
|
229
|
|
|
} |
|
230
|
|
|
|
|
231
|
|
|
/** |
|
232
|
|
|
* @param string $email |
|
233
|
|
|
*/ |
|
234
|
|
|
public function setEmail(string $email) |
|
235
|
|
|
{ |
|
236
|
|
|
$this->email = $email; |
|
237
|
|
|
} |
|
238
|
|
|
|
|
239
|
|
|
/** |
|
240
|
|
|
* @return string |
|
241
|
|
|
*/ |
|
242
|
|
|
public function getPhone(): string |
|
243
|
|
|
{ |
|
244
|
|
|
return $this->phone; |
|
245
|
|
|
} |
|
246
|
|
|
|
|
247
|
|
|
/** |
|
248
|
|
|
* @param string $phone |
|
249
|
|
|
*/ |
|
250
|
|
|
public function setPhone(string $phone) |
|
251
|
|
|
{ |
|
252
|
|
|
$this->phone = $phone; |
|
253
|
|
|
} |
|
254
|
|
|
|
|
255
|
|
|
/** |
|
256
|
|
|
* @return string |
|
257
|
|
|
*/ |
|
258
|
|
|
public function getFax(): string |
|
259
|
|
|
{ |
|
260
|
|
|
return $this->fax; |
|
261
|
|
|
} |
|
262
|
|
|
|
|
263
|
|
|
/** |
|
264
|
|
|
* @param string $fax |
|
265
|
|
|
*/ |
|
266
|
|
|
public function setFax(string $fax) |
|
267
|
|
|
{ |
|
268
|
|
|
$this->fax = $fax; |
|
269
|
|
|
} |
|
270
|
|
|
|
|
271
|
|
|
/** |
|
272
|
|
|
* @return DateTime |
|
273
|
|
|
*/ |
|
274
|
|
|
public function getRegistrationDate(): DateTime |
|
275
|
|
|
{ |
|
276
|
|
|
return $this->registrationDate; |
|
277
|
|
|
} |
|
278
|
|
|
|
|
279
|
|
|
/** |
|
280
|
|
|
* @param DateTime $registrationDate |
|
281
|
|
|
*/ |
|
282
|
|
|
public function setRegistrationDate(DateTime $registrationDate) |
|
283
|
|
|
{ |
|
284
|
|
|
$this->registrationDate = $registrationDate; |
|
285
|
|
|
} |
|
286
|
|
|
|
|
287
|
|
|
/** |
|
288
|
|
|
* @return string |
|
289
|
|
|
*/ |
|
290
|
|
|
public function getMerchantDomain(): string |
|
291
|
|
|
{ |
|
292
|
|
|
return $this->merchantDomain; |
|
293
|
|
|
} |
|
294
|
|
|
|
|
295
|
|
|
/** |
|
296
|
|
|
* @param string $merchantDomain |
|
297
|
|
|
*/ |
|
298
|
|
|
public function setMerchantDomain(string $merchantDomain) |
|
299
|
|
|
{ |
|
300
|
|
|
$this->merchantDomain = $merchantDomain; |
|
301
|
|
|
} |
|
302
|
|
|
|
|
303
|
|
|
/** |
|
304
|
|
|
* @return string |
|
305
|
|
|
*/ |
|
306
|
|
|
public function getSubdomain(): string |
|
307
|
|
|
{ |
|
308
|
|
|
return $this->subdomain; |
|
309
|
|
|
} |
|
310
|
|
|
|
|
311
|
|
|
/** |
|
312
|
|
|
* @param string $subdomain |
|
313
|
|
|
*/ |
|
314
|
|
|
public function setSubdomain(string $subdomain) |
|
315
|
|
|
{ |
|
316
|
|
|
$this->subdomain = $subdomain; |
|
317
|
|
|
} |
|
318
|
|
|
|
|
319
|
|
|
/** |
|
320
|
|
|
* @return int |
|
321
|
|
|
*/ |
|
322
|
|
|
public function getAgentId(): int |
|
323
|
|
|
{ |
|
324
|
|
|
return $this->agentId; |
|
325
|
|
|
} |
|
326
|
|
|
|
|
327
|
|
|
/** |
|
328
|
|
|
* @param int $agentId |
|
329
|
|
|
*/ |
|
330
|
|
|
public function setAgentId(int $agentId) |
|
331
|
|
|
{ |
|
332
|
|
|
$this->agentId = $agentId; |
|
333
|
|
|
} |
|
334
|
|
|
|
|
335
|
|
|
/** |
|
336
|
|
|
* @return Agent |
|
337
|
|
|
*/ |
|
338
|
|
|
public function getAgent(): ?Agent |
|
339
|
|
|
{ |
|
340
|
|
|
return $this->agent; |
|
341
|
|
|
} |
|
342
|
|
|
|
|
343
|
|
|
/** |
|
344
|
|
|
* @param Agent $agent |
|
345
|
|
|
*/ |
|
346
|
|
|
public function setAgent(Agent $agent) |
|
347
|
|
|
{ |
|
348
|
|
|
$this->agent = $agent; |
|
349
|
|
|
} |
|
350
|
|
|
|
|
351
|
|
|
/** |
|
352
|
|
|
* @return int |
|
353
|
|
|
*/ |
|
354
|
|
|
public function getTariffId(): int |
|
355
|
|
|
{ |
|
356
|
|
|
return $this->tariffId; |
|
357
|
|
|
} |
|
358
|
|
|
|
|
359
|
|
|
/** |
|
360
|
|
|
* @param int $tariffId |
|
361
|
|
|
*/ |
|
362
|
|
|
public function setTariffId(int $tariffId) |
|
363
|
|
|
{ |
|
364
|
|
|
$this->tariffId = $tariffId; |
|
365
|
|
|
} |
|
366
|
|
|
|
|
367
|
|
|
/** |
|
368
|
|
|
* @return string |
|
369
|
|
|
*/ |
|
370
|
|
|
public function getUserIpAccess(): string |
|
371
|
|
|
{ |
|
372
|
|
|
return $this->userIpAccess; |
|
373
|
|
|
} |
|
374
|
|
|
|
|
375
|
|
|
/** |
|
376
|
|
|
* @param string $userIpAccess |
|
377
|
|
|
*/ |
|
378
|
|
|
public function setUserIpAccess(string $userIpAccess) |
|
379
|
|
|
{ |
|
380
|
|
|
$this->userIpAccess = $userIpAccess; |
|
381
|
|
|
} |
|
382
|
|
|
|
|
383
|
|
|
/** |
|
384
|
|
|
* @return string |
|
385
|
|
|
*/ |
|
386
|
|
|
public function getVtIpAccess(): string |
|
387
|
|
|
{ |
|
388
|
|
|
return $this->vtIpAccess; |
|
389
|
|
|
} |
|
390
|
|
|
|
|
391
|
|
|
/** |
|
392
|
|
|
* @param string $vtIpAccess |
|
393
|
|
|
*/ |
|
394
|
|
|
public function setVtIpAccess(string $vtIpAccess) |
|
395
|
|
|
{ |
|
396
|
|
|
$this->vtIpAccess = $vtIpAccess; |
|
397
|
|
|
} |
|
398
|
|
|
|
|
399
|
|
|
/** |
|
400
|
|
|
* @return string |
|
401
|
|
|
*/ |
|
402
|
|
|
public function getSkype(): string |
|
403
|
|
|
{ |
|
404
|
|
|
return $this->skype; |
|
405
|
|
|
} |
|
406
|
|
|
|
|
407
|
|
|
/** |
|
408
|
|
|
* @param string $skype |
|
409
|
|
|
*/ |
|
410
|
|
|
public function setSkype(string $skype) |
|
411
|
|
|
{ |
|
412
|
|
|
$this->skype = $skype; |
|
413
|
|
|
} |
|
414
|
|
|
|
|
415
|
|
|
/** |
|
416
|
|
|
* @return Tariff |
|
417
|
|
|
*/ |
|
418
|
|
|
public function getTariff(): ?Tariff |
|
419
|
|
|
{ |
|
420
|
|
|
return $this->tariff; |
|
421
|
|
|
} |
|
422
|
|
|
|
|
423
|
|
|
/** |
|
424
|
|
|
* @param Tariff $tariff |
|
425
|
|
|
*/ |
|
426
|
|
|
public function setTariff(Tariff $tariff) |
|
427
|
|
|
{ |
|
428
|
|
|
$this->tariff = $tariff; |
|
429
|
|
|
} |
|
430
|
|
|
|
|
431
|
|
|
} |
|
432
|
|
|
|