Passed
Pull Request — master (#34)
by
unknown
02:48
created

OrderItem::getTaxAmount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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