1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Starweb\Api\Generated\Model; |
4
|
|
|
|
5
|
|
|
class OrderItemModelCollectionDataItem |
6
|
|
|
{ |
7
|
|
|
/** |
8
|
|
|
* The id of the order item |
9
|
|
|
* |
10
|
|
|
* @var int|null |
11
|
|
|
*/ |
12
|
|
|
protected $itemId; |
13
|
|
|
/** |
14
|
|
|
* The SKU of the order item |
15
|
|
|
* |
16
|
|
|
* @var string|null |
17
|
|
|
*/ |
18
|
|
|
protected $sku; |
19
|
|
|
/** |
20
|
|
|
* The description of the order item |
21
|
|
|
* |
22
|
|
|
* @var string|null |
23
|
|
|
*/ |
24
|
|
|
protected $description; |
25
|
|
|
/** |
26
|
|
|
* The quantity of the order item |
27
|
|
|
* |
28
|
|
|
* @var int|null |
29
|
|
|
*/ |
30
|
|
|
protected $quantity; |
31
|
|
|
/** |
32
|
|
|
* The unit symbol of the order item |
33
|
|
|
* |
34
|
|
|
* @var string|null |
35
|
|
|
*/ |
36
|
|
|
protected $unitSymbol; |
37
|
|
|
/** |
38
|
|
|
* The price per unit excluding VAT |
39
|
|
|
* |
40
|
|
|
* @var float|null |
41
|
|
|
*/ |
42
|
|
|
protected $unitPrice; |
43
|
|
|
/** |
44
|
|
|
* The items VAT rate in percent. 25.0 = 25% VAT |
45
|
|
|
* |
46
|
|
|
* @var float|null |
47
|
|
|
*/ |
48
|
|
|
protected $vatRate; |
49
|
|
|
/** |
50
|
|
|
* The discount for the entire order row. Either as a percentage or an amount. If this is an amount and set to 20.0, the sum 20.0 will be subtracted from the order total no matter what the quantity is set to. |
51
|
|
|
* |
52
|
|
|
* @var float|null |
53
|
|
|
*/ |
54
|
|
|
protected $discount; |
55
|
|
|
/** |
56
|
|
|
* The type of discount. Either ”amount” or ”percent”. Default is ”percent” |
57
|
|
|
* |
58
|
|
|
* @var string|null |
59
|
|
|
*/ |
60
|
|
|
protected $discountType; |
61
|
|
|
/** |
62
|
|
|
* The sort order of the order items |
63
|
|
|
* |
64
|
|
|
* @var int|null |
65
|
|
|
*/ |
66
|
|
|
protected $sortIndex; |
67
|
|
|
/** |
68
|
|
|
* |
69
|
|
|
* |
70
|
|
|
* @var OrderItemBundledModelItemBundledItems|null |
71
|
|
|
*/ |
72
|
|
|
protected $bundledItems; |
73
|
|
|
/** |
74
|
|
|
* The id of the order item |
75
|
|
|
* |
76
|
|
|
* @return int|null |
77
|
|
|
*/ |
78
|
|
|
public function getItemId() : ?int |
79
|
|
|
{ |
80
|
|
|
return $this->itemId; |
81
|
|
|
} |
82
|
|
|
/** |
83
|
|
|
* The id of the order item |
84
|
|
|
* |
85
|
|
|
* @param int|null $itemId |
86
|
|
|
* |
87
|
|
|
* @return self |
88
|
|
|
*/ |
89
|
|
|
public function setItemId(?int $itemId) : self |
90
|
|
|
{ |
91
|
|
|
$this->itemId = $itemId; |
92
|
|
|
return $this; |
93
|
|
|
} |
94
|
|
|
/** |
95
|
|
|
* The SKU of the order item |
96
|
|
|
* |
97
|
|
|
* @return string|null |
98
|
|
|
*/ |
99
|
|
|
public function getSku() : ?string |
100
|
|
|
{ |
101
|
|
|
return $this->sku; |
102
|
|
|
} |
103
|
|
|
/** |
104
|
|
|
* The SKU of the order item |
105
|
|
|
* |
106
|
|
|
* @param string|null $sku |
107
|
|
|
* |
108
|
|
|
* @return self |
109
|
|
|
*/ |
110
|
|
|
public function setSku(?string $sku) : self |
111
|
|
|
{ |
112
|
|
|
$this->sku = $sku; |
113
|
|
|
return $this; |
114
|
|
|
} |
115
|
|
|
/** |
116
|
|
|
* The description of the order item |
117
|
|
|
* |
118
|
|
|
* @return string|null |
119
|
|
|
*/ |
120
|
|
|
public function getDescription() : ?string |
121
|
|
|
{ |
122
|
|
|
return $this->description; |
123
|
|
|
} |
124
|
|
|
/** |
125
|
|
|
* The description of the order item |
126
|
|
|
* |
127
|
|
|
* @param string|null $description |
128
|
|
|
* |
129
|
|
|
* @return self |
130
|
|
|
*/ |
131
|
|
|
public function setDescription(?string $description) : self |
132
|
|
|
{ |
133
|
|
|
$this->description = $description; |
134
|
|
|
return $this; |
135
|
|
|
} |
136
|
|
|
/** |
137
|
|
|
* The quantity of the order item |
138
|
|
|
* |
139
|
|
|
* @return int|null |
140
|
|
|
*/ |
141
|
|
|
public function getQuantity() : ?int |
142
|
|
|
{ |
143
|
|
|
return $this->quantity; |
144
|
|
|
} |
145
|
|
|
/** |
146
|
|
|
* The quantity of the order item |
147
|
|
|
* |
148
|
|
|
* @param int|null $quantity |
149
|
|
|
* |
150
|
|
|
* @return self |
151
|
|
|
*/ |
152
|
|
|
public function setQuantity(?int $quantity) : self |
153
|
|
|
{ |
154
|
|
|
$this->quantity = $quantity; |
155
|
|
|
return $this; |
156
|
|
|
} |
157
|
|
|
/** |
158
|
|
|
* The unit symbol of the order item |
159
|
|
|
* |
160
|
|
|
* @return string|null |
161
|
|
|
*/ |
162
|
|
|
public function getUnitSymbol() : ?string |
163
|
|
|
{ |
164
|
|
|
return $this->unitSymbol; |
165
|
|
|
} |
166
|
|
|
/** |
167
|
|
|
* The unit symbol of the order item |
168
|
|
|
* |
169
|
|
|
* @param string|null $unitSymbol |
170
|
|
|
* |
171
|
|
|
* @return self |
172
|
|
|
*/ |
173
|
|
|
public function setUnitSymbol(?string $unitSymbol) : self |
174
|
|
|
{ |
175
|
|
|
$this->unitSymbol = $unitSymbol; |
176
|
|
|
return $this; |
177
|
|
|
} |
178
|
|
|
/** |
179
|
|
|
* The price per unit excluding VAT |
180
|
|
|
* |
181
|
|
|
* @return float|null |
182
|
|
|
*/ |
183
|
|
|
public function getUnitPrice() : ?float |
184
|
|
|
{ |
185
|
|
|
return $this->unitPrice; |
186
|
|
|
} |
187
|
|
|
/** |
188
|
|
|
* The price per unit excluding VAT |
189
|
|
|
* |
190
|
|
|
* @param float|null $unitPrice |
191
|
|
|
* |
192
|
|
|
* @return self |
193
|
|
|
*/ |
194
|
|
|
public function setUnitPrice(?float $unitPrice) : self |
195
|
|
|
{ |
196
|
|
|
$this->unitPrice = $unitPrice; |
197
|
|
|
return $this; |
198
|
|
|
} |
199
|
|
|
/** |
200
|
|
|
* The items VAT rate in percent. 25.0 = 25% VAT |
201
|
|
|
* |
202
|
|
|
* @return float|null |
203
|
|
|
*/ |
204
|
|
|
public function getVatRate() : ?float |
205
|
|
|
{ |
206
|
|
|
return $this->vatRate; |
207
|
|
|
} |
208
|
|
|
/** |
209
|
|
|
* The items VAT rate in percent. 25.0 = 25% VAT |
210
|
|
|
* |
211
|
|
|
* @param float|null $vatRate |
212
|
|
|
* |
213
|
|
|
* @return self |
214
|
|
|
*/ |
215
|
|
|
public function setVatRate(?float $vatRate) : self |
216
|
|
|
{ |
217
|
|
|
$this->vatRate = $vatRate; |
218
|
|
|
return $this; |
219
|
|
|
} |
220
|
|
|
/** |
221
|
|
|
* The discount for the entire order row. Either as a percentage or an amount. If this is an amount and set to 20.0, the sum 20.0 will be subtracted from the order total no matter what the quantity is set to. |
222
|
|
|
* |
223
|
|
|
* @return float|null |
224
|
|
|
*/ |
225
|
|
|
public function getDiscount() : ?float |
226
|
|
|
{ |
227
|
|
|
return $this->discount; |
228
|
|
|
} |
229
|
|
|
/** |
230
|
|
|
* The discount for the entire order row. Either as a percentage or an amount. If this is an amount and set to 20.0, the sum 20.0 will be subtracted from the order total no matter what the quantity is set to. |
231
|
|
|
* |
232
|
|
|
* @param float|null $discount |
233
|
|
|
* |
234
|
|
|
* @return self |
235
|
|
|
*/ |
236
|
|
|
public function setDiscount(?float $discount) : self |
237
|
|
|
{ |
238
|
|
|
$this->discount = $discount; |
239
|
|
|
return $this; |
240
|
|
|
} |
241
|
|
|
/** |
242
|
|
|
* The type of discount. Either ”amount” or ”percent”. Default is ”percent” |
243
|
|
|
* |
244
|
|
|
* @return string|null |
245
|
|
|
*/ |
246
|
|
|
public function getDiscountType() : ?string |
247
|
|
|
{ |
248
|
|
|
return $this->discountType; |
249
|
|
|
} |
250
|
|
|
/** |
251
|
|
|
* The type of discount. Either ”amount” or ”percent”. Default is ”percent” |
252
|
|
|
* |
253
|
|
|
* @param string|null $discountType |
254
|
|
|
* |
255
|
|
|
* @return self |
256
|
|
|
*/ |
257
|
|
|
public function setDiscountType(?string $discountType) : self |
258
|
|
|
{ |
259
|
|
|
$this->discountType = $discountType; |
260
|
|
|
return $this; |
261
|
|
|
} |
262
|
|
|
/** |
263
|
|
|
* The sort order of the order items |
264
|
|
|
* |
265
|
|
|
* @return int|null |
266
|
|
|
*/ |
267
|
|
|
public function getSortIndex() : ?int |
268
|
|
|
{ |
269
|
|
|
return $this->sortIndex; |
270
|
|
|
} |
271
|
|
|
/** |
272
|
|
|
* The sort order of the order items |
273
|
|
|
* |
274
|
|
|
* @param int|null $sortIndex |
275
|
|
|
* |
276
|
|
|
* @return self |
277
|
|
|
*/ |
278
|
|
|
public function setSortIndex(?int $sortIndex) : self |
279
|
|
|
{ |
280
|
|
|
$this->sortIndex = $sortIndex; |
281
|
|
|
return $this; |
282
|
|
|
} |
283
|
|
|
/** |
284
|
|
|
* |
285
|
|
|
* |
286
|
|
|
* @return OrderItemBundledModelItemBundledItems|null |
287
|
|
|
*/ |
288
|
|
|
public function getBundledItems() : ?OrderItemBundledModelItemBundledItems |
289
|
|
|
{ |
290
|
|
|
return $this->bundledItems; |
291
|
|
|
} |
292
|
|
|
/** |
293
|
|
|
* |
294
|
|
|
* |
295
|
|
|
* @param OrderItemBundledModelItemBundledItems|null $bundledItems |
296
|
|
|
* |
297
|
|
|
* @return self |
298
|
|
|
*/ |
299
|
|
|
public function setBundledItems(?OrderItemBundledModelItemBundledItems $bundledItems) : self |
300
|
|
|
{ |
301
|
|
|
$this->bundledItems = $bundledItems; |
302
|
|
|
return $this; |
303
|
|
|
} |
304
|
|
|
} |