1 | <?php declare(strict_types = 1); |
||
9 | class PaymentButtonResponse |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $payId; |
||
16 | |||
17 | /** |
||
18 | * @var DateTimeImmutable |
||
19 | */ |
||
20 | private $responseDateTime; |
||
21 | |||
22 | /** |
||
23 | * @var ResultCode |
||
24 | */ |
||
25 | private $resultCode; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $resultMessage; |
||
31 | |||
32 | /** |
||
33 | * @var PaymentStatus|null |
||
34 | */ |
||
35 | private $paymentStatus; |
||
36 | |||
37 | /** @var null|\SlevomatCsobGateway\Api\HttpMethod */ |
||
38 | private $redirectMethod; |
||
39 | |||
40 | /** @var null|string */ |
||
41 | private $redirectUrl; |
||
42 | |||
43 | /** @var mixed[]|null */ |
||
44 | private $redirectParams; |
||
45 | |||
46 | /** |
||
47 | * @param string $payId |
||
48 | * @param \DateTimeImmutable $responseDateTime |
||
49 | * @param \SlevomatCsobGateway\Call\ResultCode $resultCode |
||
50 | * @param string $resultMessage |
||
51 | * @param null|\SlevomatCsobGateway\Call\PaymentStatus $paymentStatus |
||
52 | * @param null|\SlevomatCsobGateway\Api\HttpMethod $redirectMethod |
||
53 | * @param null|string $redirectUrl |
||
54 | * @param mixed[]|null $redirectParams |
||
55 | */ |
||
56 | 1 | public function __construct( |
|
78 | |||
79 | 1 | public function getPayId(): string |
|
83 | |||
84 | 1 | public function getResponseDateTime(): DateTimeImmutable |
|
88 | |||
89 | 1 | public function getResultCode(): ResultCode |
|
93 | |||
94 | 1 | public function getResultMessage(): string |
|
98 | |||
99 | 1 | public function getPaymentStatus(): ?PaymentStatus |
|
103 | |||
104 | 1 | public function getRedirectMethod(): ?HttpMethod |
|
108 | |||
109 | 1 | public function getRedirectUrl(): ?string |
|
113 | |||
114 | /** |
||
115 | * @return mixed[]|null |
||
116 | */ |
||
117 | 1 | public function getRedirectParams(): ?array |
|
121 | |||
122 | } |
||
123 |