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