| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 34 | public function sendData($data): ResponseInterface |
||
| 35 | { |
||
| 36 | $response = $this->sendRequest( |
||
| 37 | Request::METHOD_POST, |
||
| 38 | sprintf( |
||
| 39 | '/api/transaction/%s/refund', |
||
| 40 | $this->getTransactionReference() |
||
| 41 | ), |
||
| 42 | $data |
||
| 43 | ); |
||
| 44 | |||
| 45 | return new RefundResponse( |
||
| 46 | $this, |
||
| 47 | $this->getResponseBody($response) |
||
| 48 | ); |
||
| 51 |