1 | <?php |
||
14 | class PayQueryStatusRequest extends AbstractHashRequest |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | public function initialize(array $parameters = []) |
||
20 | { |
||
21 | parent::initialize($parameters); |
||
22 | $this->setParameter('version', 2); |
||
23 | |||
24 | return $this; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | public function sendData($data): PayQueryStatusResponse |
||
39 | |||
40 | /** |
||
41 | * Trả về request id. |
||
42 | * |
||
43 | * @return null|string |
||
44 | */ |
||
45 | public function getRequestId(): ?string |
||
49 | |||
50 | /** |
||
51 | * Thiết lập request id của đơn hàng. |
||
52 | * |
||
53 | * @param string $id |
||
54 | * @return $this |
||
55 | */ |
||
56 | public function setRequestId(string $id) |
||
60 | |||
61 | /** |
||
62 | * Trả về mã đơn hàng. |
||
63 | * |
||
64 | * @return null|string |
||
65 | */ |
||
66 | public function getPartnerRefId(): ?string |
||
70 | |||
71 | /** |
||
72 | * Thiết lập mã đơn hàng. |
||
73 | * |
||
74 | * @param string $id |
||
75 | * @return $this |
||
76 | */ |
||
77 | public function setPartnerRefId(string $id) |
||
81 | |||
82 | /** |
||
83 | * Trả về mã đơn hàng của MoMo. |
||
84 | * |
||
85 | * @return null|string |
||
86 | */ |
||
87 | public function getMomoTransId(): ?string |
||
91 | |||
92 | /** |
||
93 | * Thiết lập mã giao dịch của MoMo. |
||
94 | * |
||
95 | * @param string $id |
||
96 | * @return $this |
||
97 | */ |
||
98 | public function setMomoTransId(string $id) |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | protected function getHashParameters(): array |
||
118 | } |
||
119 |