1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace Ticketpark\SaferpayJson\Response; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation\SerializedName; |
6
|
|
|
use JMS\Serializer\Annotation\Type; |
7
|
|
|
|
8
|
|
|
class ErrorResponse extends Response |
9
|
|
|
{ |
10
|
|
|
const BEHAVIOUR_ABORT = 'ABORT'; |
11
|
|
|
const BEHAVIOUR_OTHER_MEANS = 'OTHER_MEANS'; |
12
|
|
|
const BEHAVIOUR_RETRY = 'RETRY'; |
13
|
|
|
const BEHAVIOUR_RETRY_LATER = 'RETRY_LATER'; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @var string|null |
17
|
|
|
* @SerializedName("Behavior") |
18
|
|
|
* @Type("string") |
19
|
|
|
*/ |
20
|
|
|
private $behaviour; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @var string|null |
24
|
|
|
* @SerializedName("ErrorName") |
25
|
|
|
* @Type("string") |
26
|
|
|
*/ |
27
|
|
|
private $errorName; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var string|null |
31
|
|
|
* @SerializedName("ErrorMessage") |
32
|
|
|
* @Type("string") |
33
|
|
|
*/ |
34
|
|
|
private $errorMessage; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var string|null |
38
|
|
|
* @SerializedName("TransactionId") |
39
|
|
|
* @Type("string") |
40
|
|
|
*/ |
41
|
|
|
private $transactionId; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @var array|null |
45
|
|
|
* @SerializedName("ErrorDetail") |
46
|
|
|
* @Type("array") |
47
|
|
|
*/ |
48
|
|
|
private $errorDetail = []; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var string|null |
52
|
|
|
* @SerializedName("ProcessorName") |
53
|
|
|
* @Type("string") |
54
|
|
|
*/ |
55
|
|
|
private $processorName; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var string|null |
59
|
|
|
* @SerializedName("ProcessorResult") |
60
|
|
|
* @Type("string") |
61
|
|
|
*/ |
62
|
|
|
private $processorResult; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var string|null |
66
|
|
|
* @SerializedName("ProcessorMessage") |
67
|
|
|
* @Type("string") |
68
|
|
|
*/ |
69
|
|
|
private $processorMessage; |
70
|
|
|
|
71
|
|
|
public function getBehaviour(): ?string |
72
|
|
|
{ |
73
|
|
|
return $this->behaviour; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
public function getErrorName(): ?string |
77
|
|
|
{ |
78
|
|
|
return $this->errorName; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
public function getErrorMessage(): ?string |
82
|
|
|
{ |
83
|
|
|
return $this->errorMessage; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
public function getTransactionId(): ?string |
87
|
|
|
{ |
88
|
|
|
return $this->transactionId; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
public function getErrorDetail(): ?array |
92
|
|
|
{ |
93
|
|
|
return $this->errorDetail; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
public function getProcessorName(): ?string |
97
|
|
|
{ |
98
|
|
|
return $this->processorName; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
public function getProcessorResult(): ?string |
102
|
|
|
{ |
103
|
|
|
return $this->processorResult; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
public function getProcessorMessage(): ?string |
107
|
|
|
{ |
108
|
|
|
return $this->processorMessage; |
109
|
|
|
} |
110
|
|
|
} |
111
|
|
|
|