Passed
Push — master ( 5addfc...e8c424 )
by Manuel
59s queued 11s
created

Transaction::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Response\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class Transaction
9
{
10
    const TYPE_PAYMENT = 'PAYMENT';
11
12
    const STATUS_AUTHORIZED = 'AUTHORIZED';
13
    const STATUS_CANCELED = 'CANCELED';
14
    const STATUS_CAPTURED = 'CAPTURED';
15
    const STATUS_PENDING = 'PENDING';
16
17
    /**
18
     * @var string|null
19
     * @SerializedName("Type")
20
     * @Type("string")
21
     */
22
    private $type;
23
24
    /**
25
     * @var string|null
26
     * @SerializedName("Status")
27
     * @Type("string")
28
     */
29
    private $status;
30
31
    /**
32
     * @var string|null
33
     * @SerializedName("Id")
34
     * @Type("string")
35
     */
36
    private $id;
37
38
    /**
39
     * @var string|null
40
     * @SerializedName("CaptureId")
41
     * @Type("string")
42
     */
43
    private $captureId;
44
45
    /**
46
     * @var string|null
47
     * @SerializedName("Date")
48
     * @Type("string")
49
     */
50
    private $date;
51
52
    /**
53
     * @var Amount|null
54
     * @SerializedName("Amount")
55
     * @Type("Ticketpark\SaferpayJson\Response\Container\Amount")
56
     */
57
    private $amount;
58
59
    /**
60
     * @var string|null
61
     * @SerializedName("OrderId")
62
     * @Type("string")
63
     */
64
    private $orderId;
65
66
    /**
67
     * @var string|null
68
     * @SerializedName("AcquirerName")
69
     * @Type("string")
70
     */
71
    private $acquirerName;
72
73
    /**
74
     * @var string|null
75
     * @SerializedName("AcquirerReference")
76
     * @Type("string")
77
     */
78
    private $acquirerReference;
79
80
    /**
81
     * @var string|null
82
     * @SerializedName("SixTransactionReference")
83
     * @Type("string")
84
     */
85
    private $sixTransactionReference;
86
87
    /**
88
     * @var string|null
89
     * @SerializedName("ApprovalCode")
90
     * @Type("string")
91
     */
92
    private $approvalCode;
93
94
    /**
95
     * @var DirectDebit|null
96
     * @SerializedName("DirectDebit")
97
     * @Type("Ticketpark\SaferpayJson\Response\Container\DirectDebit")
98
     */
99
    private $directDebit;
100
101
    /**
102
     * @var Invoice|null
103
     * @SerializedName("Invoice")
104
     * @Type("Ticketpark\SaferpayJson\Response\Container\Invoice")
105
     */
106
    private $invoice;
107
108
    public function getType(): ?string
109
    {
110
        return $this->type;
111
    }
112
113
    public function getStatus(): ?string
114
    {
115
        return $this->status;
116
    }
117
118
    public function getId(): ?string
119
    {
120
        return $this->id;
121
    }
122
123
    public function getCaptureId(): ?string
124
    {
125
        return $this->captureId;
126
    }
127
128
    public function getDate(): ?string
129
    {
130
        return $this->date;
131
    }
132
133
    public function getAmount(): ?Amount
134
    {
135
        return $this->amount;
136
    }
137
138
    public function getOrderId(): ?string
139
    {
140
        return $this->orderId;
141
    }
142
143
    public function getAcquirerReference(): ?string
144
    {
145
        return $this->acquirerReference;
146
    }
147
148
    public function getAcquirerName(): ?string
149
    {
150
        return $this->acquirerName;
151
    }
152
153
    public function getSixTransactionReference(): ?string
154
    {
155
        return $this->sixTransactionReference;
156
    }
157
158
    public function getApprovalCode(): ?string
159
    {
160
        return $this->approvalCode;
161
    }
162
163
    public function getDirectDebit(): ?DirectDebit
164
    {
165
        return $this->directDebit;
166
    }
167
168
    public function getInvoice(): ?Invoice
169
    {
170
        return $this->invoice;
171
    }
172
}
173