| Total Complexity | 8 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class RefundRequest extends AbstractRequest { |
||
| 6 | |||
| 7 | public function getPaymentId() { |
||
| 8 | return $this->getParameter('PaymentId'); |
||
| 9 | } |
||
| 10 | |||
| 11 | public function setPaymentId($value) { |
||
| 12 | return $this->setParameter('PaymentId', $value); |
||
| 13 | } |
||
| 14 | |||
| 15 | public function getAmount() { |
||
| 17 | } |
||
| 18 | |||
| 19 | public function setAmount($value) { |
||
| 20 | return $this->setParameter('Amount', $value); |
||
| 21 | } |
||
| 22 | public function getData() { |
||
| 23 | $data = array( |
||
| 24 | 'KeyType' => 'PaymentId', |
||
| 25 | 'Key' => $this->getPaymentId(), |
||
| 26 | 'RefundChargeOnCustomer' => false, |
||
| 27 | 'ServiceChargeOnCustomer' => false, |
||
| 28 | 'Amount' => $this->getAmount(), |
||
| 29 | ); |
||
| 30 | return $data; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getHttpMethod() { |
||
| 34 | return 'POST'; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getEndpoint() { |
||
| 40 | } |
||
| 41 | |||
| 42 | } |
||
| 43 |