Passed
Push — main ( 098d60...1e91ce )
by Aleksandr
09:01
created

Point::getCash()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DalliSDK\Models;
6
7
use DalliSDK\Traits\Fillable;
8
use JMS\Serializer\Annotation as JMS;
9
10
/**
11
 * Модель для пунктов выдачи заказов (ПВЗ)
12
 *
13
 * @see https://api.dalli-service.com/v1/doc/pointsInfo
14
 * @JMS\XmlRoot("point")
15
 */
16
class Point
17
{
18
    use Fillable;
19
20
    /**
21
     * Код ПВЗ
22
     *
23
     * @JMS\XmlAttribute()
24
     * @JMS\Type("string")
25
     * @JMS\SerializedName("code")
26
     */
27
    private string $code;
28
29
    /**
30
     * Наименование
31
     *
32
     * @JMS\Type("string")
33
     * @JMS\SerializedName("name")
34
     */
35
    private string $name;
36
37
    /**
38
     * Регион
39
     *
40
     * @JMS\Type("string")
41
     * @JMS\SerializedName("settlement")
42
     */
43
    private ?string $settlement = null;
44
45
    /**
46
     * Населенный пункт
47
     *
48
     * @JMS\Type("string")
49
     * @JMS\SerializedName("town")
50
     */
51
    private ?string $town = null;
52
53
    /**
54
     * ФИАС код населённого пункта
55
     *
56
     * @JMS\Type("string")
57
     * @JMS\SerializedName("fias")
58
     */
59
    private ?string $fias = null;
60
61
    /**
62
     * Адрес
63
     *
64
     * @JMS\Type("string")
65
     * @JMS\SerializedName("address")
66
     */
67
    private string $address;
68
69
    /**
70
     * Отформатированный адрес
71
     *
72
     * @JMS\Type("string")
73
     * @JMS\SerializedName("addressReduce")
74
     */
75
    private ?string $addressReduce = null;
76
77
    /**
78
     * Описание ПВЗ/Как добраться
79
     *
80
     * @JMS\Type("string")
81
     * @JMS\SerializedName("description")
82
     */
83
    private ?string $description = null;
84
85
    /**
86
     * Почтовый индекс
87
     *
88
     * @JMS\Type("string")
89
     * @JMS\SerializedName("zipcode")
90
     */
91
    private ?string $zipcode = null;
92
93
    /**
94
     * Если 1, ПВЗ работает только с предоплаченными заказами
95
     *
96
     * @JMS\Type("string")
97
     * @JMS\SerializedName("onlyPrepaid")
98
     */
99
    private ?string $onlyPrepaid = null;
100
101
    /**
102
     * Если 1, принимает оплату картой
103
     *
104
     * @JMS\Type("string")
105
     * @JMS\SerializedName("acquiring")
106
     */
107
    private ?string $acquiring = null;
108
109
    /**
110
     * Если 1, принимает оплату наличными
111
     *
112
     * @JMS\Type("string")
113
     * @JMS\SerializedName("cash")
114
     */
115
    private ?string $cash = null;
116
117
    /**
118
     * Если 1, разрешена примерка
119
     *
120
     * @JMS\Type("string")
121
     * @JMS\SerializedName("EnableFitting")
122
     */
123
    private ?string $enableFitting = null;
124
125
    /**
126
     * График работы в свободной форме
127
     *
128
     * @JMS\Type("string")
129
     * @JMS\SerializedName("workShedule")
130
     */
131
    private ?string $workShedule = null;
132
133
    /**
134
     * Координаты GPS
135
     *
136
     * @JMS\Type("string")
137
     * @JMS\SerializedName("GPS")
138
     */
139
    private ?string $GPS = null;
140
141
    /**
142
     * Телефон для справок
143
     *
144
     * @JMS\Type("string")
145
     * @JMS\SerializedName("phone")
146
     */
147
    private ?string $phone = null;
148
149
    /**
150
     * Может принимать значения: DS, SDEK, BOXBERRY, 5POST
151
     *
152
     * @JMS\Type("string")
153
     * @JMS\SerializedName("partner")
154
     */
155
    private ?string $partner = null;
156
157
    /**
158
     * Ограничение по весу в кг
159
     *
160
     * @JMS\Type("float")
161
     * @JMS\SerializedName("weightLimit")
162
     */
163
    private ?float $weightLimit = null;
164
165
    /**
166
     * Ограничение по весу в кг
167
     *
168
     * @JMS\Type("string")
169
     * @JMS\SerializedName("Metro")
170
     */
171
    private ?string $metro = null;
172
173
    /**
174
     * Название улицы
175
     *
176
     * @JMS\Type("string")
177
     * @JMS\SerializedName("Street")
178
     */
179
    private ?string $street = null;
180
181
    /**
182
     * Дом
183
     *
184
     * @JMS\Type("string")
185
     * @JMS\SerializedName("House")
186
     */
187
    private ?string $house = null;
188
189
    /**
190
     * Корпус
191
     *
192
     * @JMS\Type("string")
193
     * @JMS\SerializedName("Structure")
194
     */
195
    private ?string $structure = null;
196
197
    /**
198
     * Строение
199
     *
200
     * @JMS\Type("string")
201
     * @JMS\SerializedName("Housing")
202
     */
203
    private ?string $housing = null;
204
205
    /**
206
     *
207
     *
208
     * @JMS\Type("string")
209
     * @JMS\SerializedName("Apartment")
210
     */
211
    private ?string $apartment = null;
212
213
    /**
214
     * Тарифная зона
215
     *
216
     * @JMS\Type("string")
217
     * @JMS\SerializedName("zone")
218
     */
219
    private ?string $zone = null;
220
221
    /**
222
     * Если 1, то это постамат
223
     *
224
     * @JMS\Type("string")
225
     * @JMS\SerializedName("postamat")
226
     */
227
    private ?string $postamat = null;
228
229
    /**
230
     * Дата, когда информация о ПВЗ была обновлена
231
     *
232
     * @JMS\Type("string")
233
     * @JMS\SerializedName("ldtime")
234
     */
235
    private ?string $idTime = null;
236
237
    /**
238
     * @return string
239
     */
240 3
    public function getCode(): string
241
    {
242 3
        return $this->code;
243
    }
244
245
    /**
246
     * @return string
247
     */
248 3
    public function getName(): string
249
    {
250 3
        return $this->name;
251
    }
252
253
    /**
254
     * @return string|null
255
     */
256 3
    public function getSettlement(): ?string
257
    {
258 3
        return $this->settlement;
259
    }
260
261
    /**
262
     * @return string|null
263
     */
264 3
    public function getTown(): ?string
265
    {
266 3
        return $this->town;
267
    }
268
269
    /**
270
     * @return string|null
271
     */
272 3
    public function getFias(): ?string
273
    {
274 3
        return $this->fias;
275
    }
276
277
    /**
278
     * @return string
279
     */
280 3
    public function getAddress(): string
281
    {
282 3
        return $this->address;
283
    }
284
285
    /**
286
     * @return string|null
287
     */
288 3
    public function getAddressReduce(): ?string
289
    {
290 3
        return $this->addressReduce;
291
    }
292
293
    /**
294
     * @return string|null
295
     */
296 3
    public function getDescription(): ?string
297
    {
298 3
        return $this->description;
299
    }
300
301
    /**
302
     * @return string|null
303
     */
304 3
    public function getZipcode(): ?string
305
    {
306 3
        return $this->zipcode;
307
    }
308
309
    /**
310
     * @return string|null
311
     */
312 3
    public function getOnlyPrepaid(): ?string
313
    {
314 3
        return $this->onlyPrepaid;
315
    }
316
317
    /**
318
     * @return string|null
319
     */
320 3
    public function getAcquiring(): ?string
321
    {
322 3
        return $this->acquiring;
323
    }
324
325
    /**
326
     * @return string|null
327
     */
328 3
    public function getCash(): ?string
329
    {
330 3
        return $this->cash;
331
    }
332
333
    /**
334
     * @return string|null
335
     */
336 3
    public function getEnableFitting(): ?string
337
    {
338 3
        return $this->enableFitting;
339
    }
340
341
    /**
342
     * @return string|null
343
     */
344 3
    public function getWorkShedule(): ?string
345
    {
346 3
        return $this->workShedule;
347
    }
348
349
    /**
350
     * @return string|null
351
     */
352 3
    public function getGPS(): ?string
353
    {
354 3
        return $this->GPS;
355
    }
356
357
    /**
358
     * @return string|null
359
     */
360 3
    public function getPhone(): ?string
361
    {
362 3
        return $this->phone;
363
    }
364
365
    /**
366
     * @return string|null
367
     */
368 3
    public function getPartner(): ?string
369
    {
370 3
        return $this->partner;
371
    }
372
373
    /**
374
     * @return float|null
375
     */
376 3
    public function getWeightLimit(): ?float
377
    {
378 3
        return $this->weightLimit;
379
    }
380
381
    /**
382
     * @return string|null
383
     */
384 3
    public function getMetro(): ?string
385
    {
386 3
        return $this->metro;
387
    }
388
389
    /**
390
     * @return string|null
391
     */
392 3
    public function getStreet(): ?string
393
    {
394 3
        return $this->street;
395
    }
396
397
    /**
398
     * @return string|null
399
     */
400 3
    public function getHouse(): ?string
401
    {
402 3
        return $this->house;
403
    }
404
405
    /**
406
     * @return string|null
407
     */
408 3
    public function getStructure(): ?string
409
    {
410 3
        return $this->structure;
411
    }
412
413
    /**
414
     * @return string|null
415
     */
416 3
    public function getHousing(): ?string
417
    {
418 3
        return $this->housing;
419
    }
420
421
    /**
422
     * @return string|null
423
     */
424 3
    public function getZone(): ?string
425
    {
426 3
        return $this->zone;
427
    }
428
429
    /**
430
     * @return string|null
431
     */
432 3
    public function getPostamat(): ?string
433
    {
434 3
        return $this->postamat;
435
    }
436
437
    /**
438
     * @return string|null
439
     */
440 3
    public function getIdTime(): ?string
441
    {
442 3
        return $this->idTime;
443
    }
444
445
    /**
446
     * @return string|null
447
     */
448 3
    public function getApartment(): ?string
449
    {
450 3
        return $this->apartment;
451
    }
452
}
453