1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Ticketpark\SaferpayJson\Request\Container; |
6
|
|
|
|
7
|
|
|
use JMS\Serializer\Annotation\SerializedName; |
8
|
|
|
use JMS\Serializer\Annotation\Type; |
9
|
|
|
|
10
|
|
|
final class OrderItem |
11
|
|
|
{ |
12
|
|
|
public const TYPE_DIGITAL = 'DIGITAL'; |
13
|
|
|
public const TYPE_PHYSICAL = 'PHYSICAL'; |
14
|
|
|
public const TYPE_SERVICE = 'SERVICE'; |
15
|
|
|
public const TYPE_GIFTCARD = 'GIFTCARD'; |
16
|
|
|
public const TYPE_DISCOUNT = 'DISCOUNT'; |
17
|
|
|
public const TYPE_SHIPPINGFEE = 'SHIPPINGFEE'; |
18
|
|
|
public const TYPE_SALESTAX = 'SALESTAX'; |
19
|
|
|
public const TYPE_SURCHARGE = 'SURCHARGE'; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var string|null |
23
|
|
|
* @SerializedName("Type") |
24
|
|
|
*/ |
25
|
|
|
private $type; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var string|null |
29
|
|
|
* @SerializedName("Id") |
30
|
|
|
*/ |
31
|
|
|
private $id; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var string|null |
35
|
|
|
* @SerializedName("VariantId") |
36
|
|
|
*/ |
37
|
|
|
private $variantId; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string|null |
41
|
|
|
* @SerializedName("Name") |
42
|
|
|
*/ |
43
|
|
|
private $name; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var string|null |
47
|
|
|
* @SerializedName("CategoryName") |
48
|
|
|
*/ |
49
|
|
|
private $categoryName; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var string|null |
53
|
|
|
* @SerializedName("Description") |
54
|
|
|
*/ |
55
|
|
|
private $description; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var string|null |
59
|
|
|
* @SerializedName("Quantity") |
60
|
|
|
*/ |
61
|
|
|
private $quantity; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @var string|null |
65
|
|
|
* @SerializedName("UnitPrice") |
66
|
|
|
*/ |
67
|
|
|
private $unitPrice; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var string|null |
71
|
|
|
* @SerializedName("IsPreOrder") |
72
|
|
|
*/ |
73
|
|
|
private $isPreOrder; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @var string|null |
77
|
|
|
* @SerializedName("TaxRate") |
78
|
|
|
*/ |
79
|
|
|
private $taxRate; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @var string|null |
83
|
|
|
* @SerializedName("TaxAmount") |
84
|
|
|
*/ |
85
|
|
|
private $taxAmount; |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @var string|null |
89
|
|
|
* @SerializedName("DiscountAmount") |
90
|
|
|
*/ |
91
|
|
|
private $discountAmount; |
92
|
|
|
|
93
|
|
|
|
94
|
|
|
public function getType(): ?string |
95
|
|
|
{ |
96
|
|
|
return $this->type; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
|
100
|
|
|
public function setType(?string $type): self |
101
|
|
|
{ |
102
|
|
|
$this->type = $type; |
103
|
|
|
|
104
|
|
|
return $this; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
|
108
|
|
|
public function getId(): ?string |
109
|
|
|
{ |
110
|
|
|
return $this->id; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
|
114
|
|
|
public function setId(?string $id): self |
115
|
|
|
{ |
116
|
|
|
$this->id = $id; |
117
|
|
|
|
118
|
|
|
return $this; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
|
122
|
|
|
public function getVariantId(): ?string |
123
|
|
|
{ |
124
|
|
|
return $this->variantId; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
|
128
|
|
|
public function setVariantId(?string $variantId): self |
129
|
|
|
{ |
130
|
|
|
$this->variantId = $variantId; |
131
|
|
|
|
132
|
|
|
return $this; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
|
136
|
|
|
public function getName(): ?string |
137
|
|
|
{ |
138
|
|
|
return $this->name; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
|
142
|
|
|
public function setName(?string $name): self |
143
|
|
|
{ |
144
|
|
|
$this->name = $name; |
145
|
|
|
|
146
|
|
|
return $this; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
|
150
|
|
|
public function getCategoryName(): ?string |
151
|
|
|
{ |
152
|
|
|
return $this->categoryName; |
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
|
156
|
|
|
public function setCategoryName(?string $categoryName): self |
157
|
|
|
{ |
158
|
|
|
$this->categoryName = $categoryName; |
159
|
|
|
|
160
|
|
|
return $this; |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
|
164
|
|
|
public function getDescription(): ?string |
165
|
|
|
{ |
166
|
|
|
return $this->description; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
|
170
|
|
|
public function setDescription(?string $description): self |
171
|
|
|
{ |
172
|
|
|
$this->description = $description; |
173
|
|
|
|
174
|
|
|
return $this; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
|
178
|
|
|
public function getQuantity(): ?string |
179
|
|
|
{ |
180
|
|
|
return $this->quantity; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
|
184
|
|
|
public function setQuantity(?string $quantity): self |
185
|
|
|
{ |
186
|
|
|
$this->quantity = $quantity; |
187
|
|
|
|
188
|
|
|
return $this; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
|
192
|
|
|
public function getUnitPrice(): ?string |
193
|
|
|
{ |
194
|
|
|
return $this->unitPrice; |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
|
198
|
|
|
public function setUnitPrice(?string $unitPrice): self |
199
|
|
|
{ |
200
|
|
|
$this->unitPrice = $unitPrice; |
201
|
|
|
|
202
|
|
|
return $this; |
203
|
|
|
} |
204
|
|
|
|
205
|
|
|
|
206
|
|
|
public function getIsPreOrder(): ?string |
207
|
|
|
{ |
208
|
|
|
return $this->isPreOrder; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
|
212
|
|
|
public function setIsPreOrder(?string $isPreOrder): self |
213
|
|
|
{ |
214
|
|
|
$this->isPreOrder = $isPreOrder; |
215
|
|
|
|
216
|
|
|
return $this; |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
|
220
|
|
|
public function getTaxRate(): ?string |
221
|
|
|
{ |
222
|
|
|
return $this->taxRate; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
|
226
|
|
|
public function setTaxRate(?string $taxRate): self |
227
|
|
|
{ |
228
|
|
|
$this->taxRate = $taxRate; |
229
|
|
|
|
230
|
|
|
return $this; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
|
234
|
|
|
public function getTaxAmount(): ?string |
235
|
|
|
{ |
236
|
|
|
return $this->taxAmount; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
|
240
|
|
|
public function setTaxAmount(?string $taxAmount): self |
241
|
|
|
{ |
242
|
|
|
$this->taxAmount = $taxAmount; |
243
|
|
|
|
244
|
|
|
return $this; |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
|
248
|
|
|
public function getDiscountAmount(): ?string |
249
|
|
|
{ |
250
|
|
|
return $this->discountAmount; |
251
|
|
|
} |
252
|
|
|
|
253
|
|
|
|
254
|
|
|
public function setDiscountAmount(?string $discountAmount): self |
255
|
|
|
{ |
256
|
|
|
$this->discountAmount = $discountAmount; |
257
|
|
|
|
258
|
|
|
return $this; |
259
|
|
|
} |
260
|
|
|
} |
261
|
|
|
|