Completed
Push — master ( 9db63e...40913a )
by Oleksandr
24s queued 13s
created

KlarnaGenericPaymentContainer   A

Complexity

Total Complexity 24

Size/Duplication

Total Lines 286
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 24
eloc 39
c 1
b 0
f 0
dl 0
loc 286
rs 10

24 Methods

Rating   Name   Duplication   Size   Complexity  
A setStreet() 0 3 1
A getFirstName() 0 3 1
A setFinancingType() 0 3 1
A getCurrency() 0 3 1
A setFirstName() 0 3 1
A setLastName() 0 3 1
A getPersonalData() 0 3 1
A setPersonalData() 0 3 1
A setPaydata() 0 3 1
A setCountry() 0 3 1
A getLastName() 0 3 1
A getStreet() 0 3 1
A setAmount() 0 3 1
A getZip() 0 3 1
A setShippingZip() 0 3 1
A getCountry() 0 3 1
A getAmount() 0 3 1
A getFinancingType() 0 3 1
A setCurrency() 0 3 1
A setClearingType() 0 3 1
A getPaydata() 0 3 1
A setCity() 0 3 1
A getCity() 0 3 1
A getClearingType() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Payone\Business\Api\Request\Container;
9
10
use SprykerEco\Shared\Payone\PayoneApiConstants;
11
use SprykerEco\Zed\Payone\Business\Api\Request\Container\Authorization\PersonalContainer;
12
use SprykerEco\Zed\Payone\Business\Api\Request\Container\GenericPayment\PaydataContainer;
13
14
class KlarnaGenericPaymentContainer extends AbstractRequestContainer
15
{
16
    /**
17
     * @var string|null
18
     */
19
    protected $request = PayoneApiConstants::REQUEST_TYPE_GENERICPAYMENT;
20
21
    /**
22
     * @var string|null
23
     */
24
    protected $clearingtype;
25
26
    /**
27
     * @var int|null
28
     */
29
    protected $amount;
30
31
    /**
32
     * @var string|null
33
     */
34
    protected $currency;
35
36
    /**
37
     * @var \SprykerEco\Zed\Payone\Business\Api\Request\Container\GenericPayment\PaydataContainer|null
38
     */
39
    protected $paydata;
40
41
    /**
42
     * @var string|null
43
     */
44
    protected $workorderid;
45
46
    /**
47
     * @var string|null
48
     */
49
    protected $firstname;
50
51
    /**
52
     * @var string|null
53
     */
54
    protected $lastname;
55
56
    /**
57
     * @var string|null
58
     */
59
    protected $street;
60
61
    /**
62
     * @var int|null
63
     */
64
    protected $zip;
65
66
    /**
67
     * @var string|null
68
     */
69
    protected $city;
70
71
    /**
72
     * @var string|null
73
     */
74
    protected $country;
75
76
    /**
77
     * @var string|null
78
     */
79
    protected $financingtype;
80
81
    /**
82
     * @var \SprykerEco\Zed\Payone\Business\Api\Request\Container\Authorization\PersonalContainer|null
83
     */
84
    protected $personalData;
85
86
    /**
87
     * @return string|null
88
     */
89
    public function getClearingType(): ?string
90
    {
91
        return $this->clearingtype;
92
    }
93
94
    /**
95
     * @param string $clearingType
96
     *
97
     * @return void
98
     */
99
    public function setClearingType(string $clearingType): void
100
    {
101
        $this->clearingtype = $clearingType;
102
    }
103
104
    /**
105
     * @return int|null
106
     */
107
    public function getAmount(): ?int
108
    {
109
        return $this->amount;
110
    }
111
112
    /**
113
     * @param int $amount
114
     *
115
     * @return void
116
     */
117
    public function setAmount(int $amount): void
118
    {
119
        $this->amount = $amount;
120
    }
121
122
    /**
123
     * @return string|null
124
     */
125
    public function getCurrency(): ?string
126
    {
127
        return $this->currency;
128
    }
129
130
    /**
131
     * @param string $currency
132
     *
133
     * @return void
134
     */
135
    public function setCurrency(string $currency): void
136
    {
137
        $this->currency = $currency;
138
    }
139
140
    /**
141
     * @return string|null
142
     */
143
    public function getFirstName(): ?string
144
    {
145
        return $this->firstname;
146
    }
147
148
    /**
149
     * @param string $firstName
150
     *
151
     * @return void
152
     */
153
    public function setFirstName(string $firstName): void
154
    {
155
        $this->firstname = $firstName;
156
    }
157
158
    /**
159
     * @return string|null
160
     */
161
    public function getLastName(): ?string
162
    {
163
        return $this->lastname;
164
    }
165
166
    /**
167
     * @param string $lastName
168
     *
169
     * @return void
170
     */
171
    public function setLastName(string $lastName): void
172
    {
173
        $this->lastname = $lastName;
174
    }
175
176
    /**
177
     * @return string|null
178
     */
179
    public function getStreet(): ?string
180
    {
181
        return $this->street;
182
    }
183
184
    /**
185
     * @param string $street
186
     *
187
     * @return void
188
     */
189
    public function setStreet(string $street): void
190
    {
191
        $this->street = $street;
192
    }
193
194
    /**
195
     * @return int|null
196
     */
197
    public function getZip(): ?int
198
    {
199
        return $this->zip;
200
    }
201
202
    /**
203
     * @param int $zip
204
     *
205
     * @return void
206
     */
207
    public function setShippingZip(int $zip): void
208
    {
209
        $this->zip = $zip;
210
    }
211
212
    /**
213
     * @return string|null
214
     */
215
    public function getCity(): ?string
216
    {
217
        return $this->city;
218
    }
219
220
    /**
221
     * @param string $city
222
     *
223
     * @return void
224
     */
225
    public function setCity(string $city): void
226
    {
227
        $this->city = $city;
228
    }
229
230
    /**
231
     * @return string|null
232
     */
233
    public function getCountry(): ?string
234
    {
235
        return $this->country;
236
    }
237
238
    /**
239
     * @param string $country
240
     *
241
     * @return void
242
     */
243
    public function setCountry(string $country): void
244
    {
245
        $this->country = $country;
246
    }
247
248
    /**
249
     * @return string|null
250
     */
251
    public function getFinancingType(): ?string
252
    {
253
        return $this->financingtype;
254
    }
255
256
    /**
257
     * @param string $financingType
258
     *
259
     * @return void
260
     */
261
    public function setFinancingType(string $financingType): void
262
    {
263
        $this->financingtype = $financingType;
264
    }
265
266
    /**
267
     * @return \SprykerEco\Zed\Payone\Business\Api\Request\Container\GenericPayment\PaydataContainer|null
268
     */
269
    public function getPaydata(): ?ContainerInterface
270
    {
271
        return $this->paydata;
272
    }
273
274
    /**
275
     * @param \SprykerEco\Zed\Payone\Business\Api\Request\Container\GenericPayment\PaydataContainer $payData
276
     *
277
     * @return void
278
     */
279
    public function setPaydata(PaydataContainer $payData): void
280
    {
281
        $this->paydata = $payData;
282
    }
283
284
    /**
285
     * @param \SprykerEco\Zed\Payone\Business\Api\Request\Container\Authorization\PersonalContainer $personalData
286
     *
287
     * @return void
288
     */
289
    public function setPersonalData(PersonalContainer $personalData): void
290
    {
291
        $this->personalData = $personalData;
292
    }
293
294
    /**
295
     * @return \SprykerEco\Zed\Payone\Business\Api\Request\Container\Authorization\PersonalContainer|null
296
     */
297
    public function getPersonalData(): ?ContainerInterface
298
    {
299
        return $this->personalData;
300
    }
301
}
302