src/Rede/eRede.php
public function cancel(Transaction $transaction)
    {
        $cancelTransactionService = new CancelTransactionService($this->store, $transaction, $this->logger);
        $cancelTransactionService->platform($this->platform, $this->platformVersion);

        return $cancelTransactionService->execute();
    }
public function cancel(Transaction $transaction)
    {
        $cancelTransactionService = new CancelTransactionService($this->store, $transaction, $this->logger);
        $cancelTransactionService->platform($this->platform, $this->platformVersion);

        return $cancelTransactionService->execute();
    }
@param Transaction $transaction

@return Transaction