Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 4 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | class RefundRequest extends AbstractRequest |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | public function getData(): array |
||
19 | { |
||
20 | return [ |
||
21 | 'ContractProfileId' => $this->getContractProfileId(), |
||
22 | 'AmountInCents' => $this->getAmountInteger(), |
||
23 | 'CurrencyCode' => $this->getCurrencyCode(), |
||
24 | 'Reference' => $this->getTransactionId(), |
||
25 | 'Timestamp' => $this->getTimestamp(), |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | * |
||
32 | * @see https://documentation.icepay.com/api/#operation/Refund |
||
33 | */ |
||
34 | public function sendData($data): ResponseInterface |
||
48 | ); |
||
49 | } |
||
51 |