| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class FetchRequest extends AbstractRequest |
||
| 11 | { |
||
| 12 | |||
| 13 | public function getData() |
||
| 14 | { |
||
| 15 | $endpoint = $this->getEndpoint('b2b') . '/MyBillingPay/api/TradeQuery'; |
||
| 16 | $requestData = [ |
||
| 17 | 'AuthCode' => $this->getToken() |
||
| 18 | ]; |
||
| 19 | $response = $this->httpClient->post($endpoint, null, $requestData)->send(); |
||
| 20 | $data = json_decode($response->getBody(), true); |
||
| 21 | return $data; |
||
| 22 | } |
||
| 23 | |||
| 24 | |||
| 25 | public function sendData($data) |
||
| 28 | } |
||
| 29 | |||
| 30 | } |