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 | public function __construct( |
||
74 | |||
75 | public function getPayId(): string |
||
79 | |||
80 | public function getResponseDateTime(): DateTimeImmutable |
||
84 | |||
85 | public function getResultCode(): ResultCode |
||
89 | |||
90 | public function getResultMessage(): string |
||
94 | |||
95 | /** |
||
96 | * @return PaymentStatus|null |
||
97 | */ |
||
98 | public function getPaymentStatus() |
||
102 | |||
103 | /** |
||
104 | * @return string|null |
||
105 | */ |
||
106 | public function getAuthCode() |
||
110 | |||
111 | /** |
||
112 | * @return null|string |
||
113 | */ |
||
114 | public function getMerchantData() |
||
118 | |||
119 | public function getExtensions(): array |
||
123 | |||
124 | } |
||
125 |