1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Lamoda\IsmpClient\V3\Dto; |
6
|
|
|
|
7
|
|
|
use Symfony\Component\Serializer\Annotation\SerializedName; |
8
|
|
|
|
9
|
|
|
final class FacadeCisItemResponse |
10
|
|
|
{ |
11
|
|
|
public const STATUS_EMITTED = 'EMITTED'; |
12
|
|
|
public const STATUS_APPLIED = 'APPLIED'; |
13
|
|
|
public const STATUS_INTRODUCED = 'INTRODUCED'; |
14
|
|
|
public const STATUS_RETIRED = 'RETIRED'; |
15
|
|
|
public const STATUS_WRITTEN_OFF = 'WRITTEN_OFF'; |
16
|
|
|
public const STATUS_ISSUED = 'ISSUED'; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var string |
20
|
|
|
*/ |
21
|
|
|
private $cis; |
22
|
|
|
/** |
23
|
|
|
* @var string |
24
|
|
|
*/ |
25
|
|
|
private $gtin; |
26
|
|
|
/** |
27
|
|
|
* @var string|null |
28
|
|
|
* @SerializedName("producerName") |
29
|
|
|
*/ |
30
|
|
|
private $producerName; |
31
|
|
|
/** |
32
|
|
|
* @var string |
33
|
|
|
*/ |
34
|
|
|
private $status; |
35
|
|
|
/** |
36
|
|
|
* @var int |
37
|
|
|
* @SerializedName("emissionDate") |
38
|
|
|
*/ |
39
|
|
|
private $emissionDate; |
40
|
|
|
/** |
41
|
|
|
* @var string |
42
|
|
|
* @SerializedName("packageType") |
43
|
|
|
*/ |
44
|
|
|
private $packageType; |
45
|
|
|
/** |
46
|
|
|
* @var string|null |
47
|
|
|
* @SerializedName("ownerName") |
48
|
|
|
*/ |
49
|
|
|
private $ownerName; |
50
|
|
|
/** |
51
|
|
|
* @var string|null |
52
|
|
|
* @SerializedName("ownerInn") |
53
|
|
|
*/ |
54
|
|
|
private $ownerInn; |
55
|
|
|
/** |
56
|
|
|
* @var string|null |
57
|
|
|
* @SerializedName("productName") |
58
|
|
|
*/ |
59
|
|
|
private $productName; |
60
|
|
|
/** |
61
|
|
|
* @var string|null |
62
|
|
|
*/ |
63
|
|
|
private $brand; |
64
|
|
|
/** |
65
|
|
|
* @var int |
66
|
|
|
* @SerializedName("countChildren") |
67
|
|
|
*/ |
68
|
|
|
private $countChildren; |
69
|
|
|
/** |
70
|
|
|
* @var string|null |
71
|
|
|
* @SerializedName("agentInn") |
72
|
|
|
*/ |
73
|
|
|
private $agentInn; |
74
|
|
|
/** |
75
|
|
|
* @var string|null |
76
|
|
|
* @SerializedName("agentName") |
77
|
|
|
*/ |
78
|
|
|
private $agentName; |
79
|
|
|
|
80
|
|
|
public function __construct( |
81
|
|
|
string $cis, |
82
|
|
|
string $gtin, |
83
|
|
|
string $status, |
84
|
|
|
int $emissionDate, |
85
|
|
|
string $packageType, |
86
|
|
|
int $countChildren |
87
|
|
|
) { |
88
|
|
|
$this->cis = $cis; |
89
|
|
|
$this->gtin = $gtin; |
90
|
|
|
$this->status = $status; |
91
|
|
|
$this->emissionDate = $emissionDate; |
92
|
|
|
$this->packageType = $packageType; |
93
|
|
|
$this->countChildren = $countChildren; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
public function getCis(): string |
97
|
|
|
{ |
98
|
|
|
return $this->cis; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
public function getGtin(): string |
102
|
|
|
{ |
103
|
|
|
return $this->gtin; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
public function getProducerName(): ?string |
107
|
|
|
{ |
108
|
|
|
return $this->producerName; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
public function setProducerName(string $producerName): void |
112
|
|
|
{ |
113
|
|
|
$this->producerName = $producerName; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
public function getStatus(): string |
117
|
|
|
{ |
118
|
|
|
return $this->status; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
public function getEmissionDate(): int |
122
|
|
|
{ |
123
|
|
|
return $this->emissionDate; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
public function getPackageType(): string |
127
|
|
|
{ |
128
|
|
|
return $this->packageType; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
public function getOwnerName(): ?string |
132
|
|
|
{ |
133
|
|
|
return $this->ownerName; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
public function setOwnerName(string $ownerName): void |
137
|
|
|
{ |
138
|
|
|
$this->ownerName = $ownerName; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
public function getOwnerInn(): ?string |
142
|
|
|
{ |
143
|
|
|
return $this->ownerInn; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
public function setOwnerInn(string $ownerInn): void |
147
|
|
|
{ |
148
|
|
|
$this->ownerInn = $ownerInn; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
public function getCountChildren(): int |
152
|
|
|
{ |
153
|
|
|
return $this->countChildren; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
public function getProductName(): ?string |
157
|
|
|
{ |
158
|
|
|
return $this->productName; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
public function setProductName(string $productName): void |
162
|
|
|
{ |
163
|
|
|
$this->productName = $productName; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
public function getBrand(): ?string |
167
|
|
|
{ |
168
|
|
|
return $this->brand; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
public function setBrand(string $brand): void |
172
|
|
|
{ |
173
|
|
|
$this->brand = $brand; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
public function getAgentInn(): ?string |
177
|
|
|
{ |
178
|
|
|
return $this->agentInn; |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
public function setAgentInn(?string $agentInn): void |
182
|
|
|
{ |
183
|
|
|
$this->agentInn = $agentInn; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
public function getAgentName(): ?string |
187
|
|
|
{ |
188
|
|
|
return $this->agentName; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
public function setAgentName(?string $agentName): void |
192
|
|
|
{ |
193
|
|
|
$this->agentName = $agentName; |
194
|
|
|
} |
195
|
|
|
} |
196
|
|
|
|