Passed
Push — main ( 15bc37...ad68f8 )
by Aleksandr
08:35
created

OrderTransferMoney::getDeliveredDate()   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 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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/moneyTransfers
14
 * @JMS\XmlRoot("order")
15
 */
16
class OrderTransferMoney
17
{
18
    use Fillable;
19
20
    /**
21
     * Штрих-код места (обязательный параметр)
22
     *
23
     * @JMS\XmlAttribute()
24
     * @JMS\Type("string")
25
     * @JMS\SerializedName("strbarcode")
26
     */
27
    private ?string $strBarCode;
28
29
    /**
30
     * Номер заявки в учетной системе ИМ (обязательный атрибут)
31
     *
32
     * @JMS\XmlAttribute()
33
     * @JMS\Type("string")
34
     * @JMS\SerializedName("number")
35
     */
36
    private string $number;
37
38
    /**
39
     * Дата доставки (Y-m-d)
40
     *
41
     * @JMS\XmlAttribute()
42
     * @JMS\Type("DateTimeImmutable<'Y-m-d'>")
43
     * @JMS\SerializedName("delivereddate")
44
     */
45
    private ?\DateTimeImmutable $deliveredDate = null;
46
47
    /**
48
     * Сумма, которую взяли с получателя
49
     *
50
     * @JMS\XmlAttribute()
51
     * @JMS\Type("float")
52
     * @JMS\SerializedName("price")
53
     */
54
    private float $price;
55
56
    /**
57
     * Стоимость наших(dalli) услуг
58
     *
59
     * @JMS\XmlAttribute()
60
     * @JMS\Type("float")
61
     * @JMS\SerializedName("service")
62
     */
63
    private float $service;
64
65
    /**
66
     * Сумма, которую мы переводим по этой заявке
67
     *
68
     * @JMS\XmlAttribute()
69
     * @JMS\Type("float")
70
     * @JMS\SerializedName("transfer")
71
     */
72
    private float $transfer;
73
74
    /**
75
     * @return string|null
76
     */
77 2
    public function getStrBarCode(): ?string
78
    {
79 2
        return $this->strBarCode;
80
    }
81
82
    /**
83
     * @return string
84
     */
85 2
    public function getNumber(): string
86
    {
87 2
        return $this->number;
88
    }
89
90
    /**
91
     * @return \DateTimeImmutable|null
92
     */
93 2
    public function getDeliveredDate(): ?\DateTimeImmutable
94
    {
95 2
        return $this->deliveredDate;
96
    }
97
98
    /**
99
     * @return float
100
     */
101 2
    public function getPrice(): float
102
    {
103 2
        return $this->price;
104
    }
105
106
    /**
107
     * @return float
108
     */
109 2
    public function getService(): float
110
    {
111 2
        return $this->service;
112
    }
113
114
    /**
115
     * @return float
116
     */
117 2
    public function getTransfer(): float
118
    {
119 2
        return $this->transfer;
120
    }
121
}
122