1 | <?php declare(strict_types = 1); |
||
8 | class PaymentResponse |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $payId; |
||
15 | |||
16 | /** |
||
17 | * @var DateTimeImmutable |
||
18 | */ |
||
19 | private $responseDateTime; |
||
20 | |||
21 | /** |
||
22 | * @var ResultCode |
||
23 | */ |
||
24 | private $resultCode; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $resultMessage; |
||
30 | |||
31 | /** |
||
32 | * @var PaymentStatus|null |
||
33 | */ |
||
34 | private $paymentStatus; |
||
35 | |||
36 | /** |
||
37 | * @var string|null |
||
38 | */ |
||
39 | private $authCode; |
||
40 | |||
41 | /** |
||
42 | * @var string|null |
||
43 | */ |
||
44 | private $merchantData; |
||
45 | |||
46 | /** @var mixed[] */ |
||
47 | private $extensions; |
||
48 | |||
49 | /** |
||
50 | * @param string $payId |
||
51 | * @param \DateTimeImmutable $responseDateTime |
||
52 | * @param \SlevomatCsobGateway\Call\ResultCode $resultCode |
||
53 | * @param string $resultMessage |
||
54 | * @param \SlevomatCsobGateway\Call\PaymentStatus|null $paymentStatus |
||
55 | * @param string|null $authCode |
||
56 | * @param string|null $merchantData |
||
57 | * @param mixed[] $extensions |
||
58 | */ |
||
59 | 10 | public function __construct( |
|
84 | |||
85 | 9 | public function getPayId(): string |
|
89 | |||
90 | 9 | public function getResponseDateTime(): DateTimeImmutable |
|
94 | |||
95 | 9 | public function getResultCode(): ResultCode |
|
99 | |||
100 | 9 | public function getResultMessage(): string |
|
104 | |||
105 | 9 | public function getPaymentStatus(): ?PaymentStatus |
|
106 | { |
||
107 | 9 | return $this->paymentStatus; |
|
108 | } |
||
109 | |||
110 | 9 | public function getAuthCode(): ?string |
|
111 | { |
||
112 | 9 | return $this->authCode; |
|
113 | } |
||
114 | |||
115 | 1 | public function getMerchantData(): ?string |
|
119 | |||
120 | /** |
||
121 | * @return mixed[] |
||
122 | */ |
||
123 | public function getExtensions(): array |
||
127 | |||
128 | } |
||
129 |