| Total Complexity | 3 | 
| Total Lines | 29 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 10 | class RefundRequest extends AbstractRequest | ||
| 11 | { | ||
| 12 | protected $requestMethod = 'POST'; | ||
| 13 | |||
| 14 | public function getData() | ||
| 15 |     { | ||
| 16 |         $this->validate('merchantId', 'amount', 'currency', 'transactionReference'); | ||
| 17 | |||
| 18 | $data = [ | ||
| 19 | 'amountOfMoney' => [ | ||
| 20 | 'amount' => $this->getAmountInteger(), | ||
| 21 | 'currencyCode' => $this->getCurrency(), | ||
| 22 | ], | ||
| 23 | 'operationReferences' => [ | ||
| 24 | 'merchantReference' => $this->getTransactionId(), | ||
| 25 | ], | ||
| 26 | ]; | ||
| 27 | |||
| 28 | return $data; | ||
| 29 | } | ||
| 30 | |||
| 31 | protected function createResponse($data) | ||
| 34 | } | ||
| 35 | |||
| 36 | protected function getAction() | ||
| 39 | } | ||
| 40 | } | ||
| 41 |