/
ResponseStatus.php
175 lines (128 loc) · 4.21 KB
/
ResponseStatus.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?php
declare(strict_types=1);
namespace Vlsv\SberPayQrApiClient\Entity;
use DateTimeImmutable;
class ResponseStatus implements ResponseInterface
{
/** Уникальный идентификатор запроса. */
private string $rqUid;
/** Дата/Время формирования запроса. */
private DateTimeImmutable $rqTm;
/** Уникальный идентификатор Торговой точки. */
private string $mid;
/** Уникальный идентификатор терминала. */
private string $tid;
/** IdQR устройства или tid Уникальный идентификатор терминала для СБП, на котором сформирован заказ. */
private string $idQr;
/** ID заказа в АС ППРБ.Карты. */
private string $orderId;
/** Статус заказа. */
private OrderState $orderState;
/** @var ResponseStatusOrderOperationParams[] Блок с перечнем операций, привязанных к данному заказу с детализацией по каждой операции. */
private array $orderOperationParams;
/** Блок с перечнем параметров операции СБП. Передается только для операции оплаты через СБП (добавляется в API v3.0.0). */
private ResponseStatusSbpOperationParams $sbpOperationParams;
/** Код ошибки. */
private string $errorCode;
/** Описание ошибки выполнения запроса. */
private string $errorDescription;
public function getRqUid(): string
{
return $this->rqUid;
}
public function setRqUid(string $rqUid): ResponseStatus
{
$this->rqUid = $rqUid;
return $this;
}
public function getRqTm(): DateTimeImmutable
{
return $this->rqTm;
}
public function setRqTm(DateTimeImmutable $rqTm): ResponseStatus
{
$this->rqTm = $rqTm;
return $this;
}
public function getMid(): string
{
return $this->mid;
}
public function setMid(string $mid): ResponseStatus
{
$this->mid = $mid;
return $this;
}
public function getTid(): string
{
return $this->tid;
}
public function setTid(string $tid): ResponseStatus
{
$this->tid = $tid;
return $this;
}
public function getIdQr(): string
{
return $this->idQr;
}
public function setIdQr(string $idQr): ResponseStatus
{
$this->idQr = $idQr;
return $this;
}
public function getOrderId(): string
{
return $this->orderId;
}
public function setOrderId(string $orderId): ResponseStatus
{
$this->orderId = $orderId;
return $this;
}
public function getOrderState(): OrderState
{
return $this->orderState;
}
public function setOrderState(OrderState $orderState): ResponseStatus
{
$this->orderState = $orderState;
return $this;
}
public function getOrderOperationParams(): array
{
return $this->orderOperationParams;
}
public function setOrderOperationParams(array $orderOperationParams): ResponseStatus
{
$this->orderOperationParams = $orderOperationParams;
return $this;
}
public function getSbpOperationParams(): ResponseStatusSbpOperationParams
{
return $this->sbpOperationParams;
}
public function setSbpOperationParams(ResponseStatusSbpOperationParams $sbpOperationParams): ResponseStatus
{
$this->sbpOperationParams = $sbpOperationParams;
return $this;
}
public function getErrorCode(): string
{
return $this->errorCode;
}
public function setErrorCode(string $errorCode): ResponseStatus
{
$this->errorCode = $errorCode;
return $this;
}
public function getErrorDescription(): string
{
return $this->errorDescription;
}
public function setErrorDescription(string $errorDescription): ResponseStatus
{
$this->errorDescription = $errorDescription;
return $this;
}
}