1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Lamoda\IsmpClient\V3\Dto; |
6
|
|
|
|
7
|
|
|
use Lamoda\IsmpClient\V3\Dto\FacadeDocBodyResponse\Body; |
8
|
|
|
use Symfony\Component\Serializer\Annotation\SerializedName; |
9
|
|
|
|
10
|
|
|
final class FacadeDocBodyResponse |
11
|
|
|
{ |
12
|
|
|
public const STATUS_IN_PROGRESS = 'IN_PROGRESS'; |
13
|
|
|
public const STATUS_CHECKED_NOT_OK = 'CHECKED_NOT_OK'; |
14
|
|
|
public const STATUS_PROCESSING_ERROR = 'PROCESSING_ERROR'; |
15
|
|
|
public const STATUS_CHECKED_OK = 'CHECKED_OK'; |
16
|
|
|
public const STATUS_UNDEFINED = 'UNDEFINED'; |
17
|
|
|
public const STATUS_CANCELLED = 'CANCELLED'; |
18
|
|
|
public const STATUS_ACCEPTED = 'ACCEPTED'; |
19
|
|
|
public const STATUS_WAIT_ACCEPTANCE = 'WAIT_ACCEPTANCE'; |
20
|
|
|
public const STATUS_WAIT_PARTICIPANT_REGISTRATION = 'WAIT_PARTICIPANT_REGISTRATION'; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @var string |
24
|
|
|
*/ |
25
|
|
|
private $number; |
26
|
|
|
/** |
27
|
|
|
* @var string |
28
|
|
|
* |
29
|
|
|
* @SerializedName("docDate") |
30
|
|
|
*/ |
31
|
|
|
private $docDate; |
32
|
|
|
/** |
33
|
|
|
* @var string |
34
|
|
|
*/ |
35
|
|
|
private $type; |
36
|
|
|
/** |
37
|
|
|
* @var string |
38
|
|
|
*/ |
39
|
|
|
private $status; |
40
|
|
|
/** |
41
|
|
|
* @var string |
42
|
|
|
* |
43
|
|
|
* @SerializedName("senderName") |
44
|
|
|
*/ |
45
|
|
|
private $senderName; |
46
|
|
|
/** |
47
|
|
|
* @var string|null |
48
|
|
|
*/ |
49
|
|
|
private $content; |
50
|
|
|
/** |
51
|
|
|
* @var Body|null |
52
|
|
|
*/ |
53
|
|
|
private $body; |
54
|
|
|
/** |
55
|
|
|
* @var array|null |
56
|
|
|
*/ |
57
|
|
|
private $errors; |
58
|
|
|
/** |
59
|
|
|
* @var string|null |
60
|
|
|
*/ |
61
|
|
|
private $receiverName; |
62
|
|
|
/** |
63
|
|
|
* @var string|null |
64
|
|
|
*/ |
65
|
|
|
private $downloadStatus; |
66
|
|
|
/** |
67
|
|
|
* @var string|null |
68
|
|
|
*/ |
69
|
|
|
private $downloadDesc; |
70
|
|
|
/** |
71
|
|
|
* @var string|null |
72
|
|
|
*/ |
73
|
|
|
private $cisTotal; |
74
|
|
|
|
75
|
|
|
public function __construct( |
76
|
|
|
string $number, |
77
|
|
|
string $docDate, |
78
|
|
|
string $type, |
79
|
|
|
string $status, |
80
|
|
|
string $senderName, |
81
|
|
|
?string $content = null, |
82
|
|
|
?Body $body = null |
83
|
|
|
) { |
84
|
|
|
$this->number = $number; |
85
|
|
|
$this->docDate = $docDate; |
86
|
|
|
$this->type = $type; |
87
|
|
|
$this->status = $status; |
88
|
|
|
$this->senderName = $senderName; |
89
|
|
|
$this->content = $content; |
90
|
|
|
$this->body = $body; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
public function getNumber(): string |
94
|
|
|
{ |
95
|
|
|
return $this->number; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function getDocDate(): string |
99
|
|
|
{ |
100
|
|
|
return $this->docDate; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
public function getType(): string |
104
|
|
|
{ |
105
|
|
|
return $this->type; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
public function getStatus(): string |
109
|
|
|
{ |
110
|
|
|
return $this->status; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
public function getSenderName(): string |
114
|
|
|
{ |
115
|
|
|
return $this->senderName; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
public function getContent(): ?string |
119
|
|
|
{ |
120
|
|
|
return $this->content; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
public function getBody(): ?Body |
124
|
|
|
{ |
125
|
|
|
return $this->body; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
public function getErrors(): ?array |
129
|
|
|
{ |
130
|
|
|
return $this->errors; |
131
|
|
|
} |
132
|
|
|
|
133
|
|
|
public function setErrors(?array $errors) |
134
|
|
|
{ |
135
|
|
|
$this->errors = $errors; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
public function getReceiverName(): ?string |
139
|
|
|
{ |
140
|
|
|
return $this->receiverName; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
public function setReceiverName(?string $receiverName): self |
144
|
|
|
{ |
145
|
|
|
$this->receiverName = $receiverName; |
146
|
|
|
|
147
|
|
|
return $this; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
public function getDownloadStatus(): ?string |
151
|
|
|
{ |
152
|
|
|
return $this->downloadStatus; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
public function setDownloadStatus(?string $downloadStatus): self |
156
|
|
|
{ |
157
|
|
|
$this->downloadStatus = $downloadStatus; |
158
|
|
|
|
159
|
|
|
return $this; |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
public function getDownloadDesc(): ?string |
163
|
|
|
{ |
164
|
|
|
return $this->downloadDesc; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
public function setDownloadDesc(?string $downloadDesc): self |
168
|
|
|
{ |
169
|
|
|
$this->downloadDesc = $downloadDesc; |
170
|
|
|
|
171
|
|
|
return $this; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
public function getCisTotal(): ?string |
175
|
|
|
{ |
176
|
|
|
return $this->cisTotal; |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
public function setCisTotal(?string $cisTotal): self |
180
|
|
|
{ |
181
|
|
|
$this->cisTotal = $cisTotal; |
182
|
|
|
|
183
|
|
|
return $this; |
184
|
|
|
} |
185
|
|
|
} |
186
|
|
|
|