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