|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* This file is part of RussianPost SDK package. |
|
5
|
|
|
* |
|
6
|
|
|
* © Appwilio (http://appwilio.com), greabock (https://github.com/greabock), JhaoDa (https://github.com/jhaoda) |
|
7
|
|
|
* |
|
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
9
|
|
|
* file that was distributed with this source code. |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
declare(strict_types=1); |
|
13
|
|
|
|
|
14
|
|
|
namespace Appwilio\RussianPostSDK\Tracking\Single; |
|
15
|
|
|
|
|
16
|
|
|
final class TrackingEvent |
|
17
|
|
|
{ |
|
18
|
|
|
/** @var TrackingEventAddressParameters */ |
|
19
|
|
|
private $AddressParameters; |
|
20
|
|
|
|
|
21
|
|
|
/** @var TrackingEventFinanceParameters */ |
|
22
|
|
|
private $FinanceParameters; |
|
23
|
|
|
|
|
24
|
|
|
/** @var TrackingEventItemParameters */ |
|
25
|
|
|
private $ItemParameters; |
|
26
|
|
|
|
|
27
|
|
|
/** @var TrackingEventOperationParameters */ |
|
28
|
|
|
private $OperationParameters; |
|
29
|
|
|
|
|
30
|
|
|
/** @var TrackingEventUserParameters */ |
|
31
|
|
|
private $UserParameters; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* Адресные данные операции (AddressParameters). |
|
35
|
|
|
* |
|
36
|
|
|
* @return TrackingEventAddressParameters |
|
37
|
|
|
*/ |
|
38
|
1 |
|
public function getAddressParameters(): TrackingEventAddressParameters |
|
39
|
|
|
{ |
|
40
|
1 |
|
return $this->AddressParameters; |
|
41
|
|
|
} |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* Финансовые данные операции (FinanceParameters). |
|
45
|
|
|
* |
|
46
|
|
|
* @return TrackingEventFinanceParameters |
|
47
|
|
|
*/ |
|
48
|
1 |
|
public function getFinanceParameters(): TrackingEventFinanceParameters |
|
49
|
|
|
{ |
|
50
|
1 |
|
return $this->FinanceParameters; |
|
51
|
|
|
} |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* Данные о почтовом отправлении (ItemParameters). |
|
55
|
|
|
* |
|
56
|
|
|
* @return TrackingEventItemParameters |
|
57
|
|
|
*/ |
|
58
|
1 |
|
public function getItemParameters(): TrackingEventItemParameters |
|
59
|
|
|
{ |
|
60
|
1 |
|
return $this->ItemParameters; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* Параметры операции (OperationParameters). |
|
65
|
|
|
* |
|
66
|
|
|
* @return TrackingEventOperationParameters |
|
67
|
|
|
*/ |
|
68
|
1 |
|
public function getOperationParameters(): TrackingEventOperationParameters |
|
69
|
|
|
{ |
|
70
|
1 |
|
return $this->OperationParameters; |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
/** |
|
74
|
|
|
* Данные субъектов, связанных с операцией (UserParameters). |
|
75
|
|
|
* |
|
76
|
|
|
* @return TrackingEventUserParameters |
|
77
|
|
|
*/ |
|
78
|
1 |
|
public function getUserParameters(): TrackingEventUserParameters |
|
79
|
|
|
{ |
|
80
|
1 |
|
return $this->UserParameters; |
|
81
|
|
|
} |
|
82
|
|
|
} |
|
83
|
|
|
|