1 | <?php |
||
16 | class PurchaseRequest extends AbstractHashRequest |
||
17 | { |
||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | public function initialize(array $parameters = []) |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function getData(): array |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function sendData($data) |
||
52 | |||
53 | /** |
||
54 | * Trả về app data token nhận từ MoMo. |
||
55 | * |
||
56 | * @return null|string |
||
57 | */ |
||
58 | public function getAppData(): ?string |
||
62 | |||
63 | /** |
||
64 | * Thiết app token từ app MoMo gửi sang. |
||
65 | * |
||
66 | * @param string $appData |
||
67 | * @return $this |
||
68 | */ |
||
69 | public function setAppData(string $appData) |
||
73 | |||
74 | /** |
||
75 | * Trả về tên cửa hàng. |
||
76 | * |
||
77 | * @return null|string |
||
78 | */ |
||
79 | public function getStoreId(): ?string |
||
83 | |||
84 | /** |
||
85 | * Thiết lập mã cửa hàng. |
||
86 | * |
||
87 | * @param string $id |
||
88 | * @return $this |
||
89 | */ |
||
90 | public function setStoreId(string $id) |
||
94 | |||
95 | /** |
||
96 | * Trả về store name. |
||
97 | * |
||
98 | * @return null|string |
||
99 | */ |
||
100 | public function getStoreName(): ?string |
||
104 | |||
105 | /** |
||
106 | * Thiết lập tên cửa hàng. |
||
107 | * |
||
108 | * @param string $name |
||
109 | * @return $this |
||
110 | */ |
||
111 | public function setStoreName(string $name) |
||
115 | |||
116 | /** |
||
117 | * Trả về mã đơn hàng. |
||
118 | * |
||
119 | * @return null|string |
||
120 | */ |
||
121 | public function getPartnerRefId(): ?string |
||
125 | |||
126 | /** |
||
127 | * Thiết lập mã đơn hàng. |
||
128 | * |
||
129 | * @param string $id |
||
130 | * @return $this |
||
131 | */ |
||
132 | public function setPartnerRefId(string $id) |
||
136 | |||
137 | /** |
||
138 | * Trả về mã đơn hàng bổ sung. |
||
139 | * |
||
140 | * @return null|string |
||
141 | */ |
||
142 | public function getPartnerTransId(): ?string |
||
146 | |||
147 | /** |
||
148 | * Thiết lập mã đơn hàng bổ sung. |
||
149 | * |
||
150 | * @param string $id |
||
151 | * @return $this |
||
152 | */ |
||
153 | public function setPartnerTransId(string $id) |
||
157 | |||
158 | /** |
||
159 | * Trả về tên công ty, đơn vị của bạn. |
||
160 | * |
||
161 | * @return null|string |
||
162 | */ |
||
163 | public function getPartnerName(): ?string |
||
167 | |||
168 | /** |
||
169 | * Thiết lập tên công ty, tổ chức của bạn. |
||
170 | * |
||
171 | * @param string $name |
||
172 | * @return $this |
||
173 | */ |
||
174 | public function setPartnerName(string $name) |
||
178 | |||
179 | /** |
||
180 | * Trả về số điện thoại khách hàng. |
||
181 | * |
||
182 | * @return null|string |
||
183 | */ |
||
184 | public function getCustomerNumber(): ?string |
||
188 | |||
189 | /** |
||
190 | * Thiết lập số điện thoại khách hàng. |
||
191 | * |
||
192 | * @param string $number |
||
193 | * @return $this |
||
194 | */ |
||
195 | public function setCustomerNumber(string $number) |
||
199 | |||
200 | /** |
||
201 | * {@inheritdoc} |
||
202 | */ |
||
203 | protected function getHashParameters(): array |
||
227 | } |
||
228 |