| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class TransactionEndpoint extends Endpoint |
||
| 14 | { |
||
| 15 | protected string $location = '/service/resources/transactions'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Endpoint para obter um recurso Transaction |
||
| 19 | * |
||
| 20 | * @param integer $id |
||
| 21 | * @return Response |
||
| 22 | * |
||
| 23 | * @codeCoverageIgnore |
||
| 24 | */ |
||
| 25 | public function get(int $id): Response |
||
| 26 | { |
||
| 27 | return $this->_GET(['id' => $id]); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Endpoint para listar recursos Transaction |
||
| 32 | * |
||
| 33 | * @param array|null $filters |
||
| 34 | * @return Response |
||
| 35 | * |
||
| 36 | */ |
||
| 37 | public function list(?array $filters = []): Response |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Endpoint para liberar recebíveis de recurso Transaction |
||
| 44 | * |
||
| 45 | * @param integer $sellerId |
||
| 46 | * @param integer $transactionId |
||
| 47 | * @return Response |
||
| 48 | * |
||
| 49 | * @codeCoverageIgnore |
||
| 50 | */ |
||
| 51 | public function releaseReceivables(int $sellerId, int $transactionId): Response |
||
| 54 | } |
||
| 55 | |||
| 56 | } |