1 | <?php |
||
16 | class PurchaseRequest extends AbstractHashRequest |
||
17 | { |
||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | public function initialize(array $parameters = []) |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | * @throws \Omnipay\Common\Exception\InvalidRequestException |
||
33 | */ |
||
34 | public function getData(): array |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function sendData($data): PurchaseResponse |
||
55 | |||
56 | /** |
||
57 | * Trả về mã cửa hàng. |
||
58 | * |
||
59 | * @return null|string |
||
60 | */ |
||
61 | public function getStoreId(): ?string |
||
65 | |||
66 | /** |
||
67 | * Thiết lập mã cửa hàng. |
||
68 | * |
||
69 | * @param string $id |
||
70 | * @return $this |
||
71 | */ |
||
72 | public function setStoreId(string $id) |
||
76 | |||
77 | /** |
||
78 | * Trả về tên cửa hàng. |
||
79 | * |
||
80 | * @return null|string |
||
81 | */ |
||
82 | public function getStoreName(): ?string |
||
86 | |||
87 | /** |
||
88 | * Thiết lập tên cửa hàng. |
||
89 | * |
||
90 | * @param string $name |
||
91 | * @return $this |
||
92 | */ |
||
93 | public function setStoreName(string $name) |
||
97 | |||
98 | /** |
||
99 | * Trả về mã đơn hàng. |
||
100 | * |
||
101 | * @return null|string |
||
102 | */ |
||
103 | public function getPartnerRefId(): ?string |
||
107 | |||
108 | /** |
||
109 | * Thiết lập mã đơn hàng. |
||
110 | * |
||
111 | * @param string $id |
||
112 | * @return $this |
||
113 | */ |
||
114 | public function setPartnerRefId(string $id) |
||
118 | |||
119 | /** |
||
120 | * Trả về mã thanh toán. |
||
121 | * |
||
122 | * @return null|string |
||
123 | */ |
||
124 | public function getPaymentCode(): ?string |
||
128 | |||
129 | /** |
||
130 | * Thiết lập mã khách thanh toán. |
||
131 | * |
||
132 | * @param string $code |
||
133 | * @return $this |
||
134 | */ |
||
135 | public function setPaymentCode(string $code) |
||
139 | |||
140 | /** |
||
141 | * {@inheritdoc} |
||
142 | */ |
||
143 | protected function getHashParameters(): array |
||
159 | } |
||
160 |