public function request()
    {
        $transactions = $this->searchTransactions();

        if(count($transactions) > 0) {
            foreach ($transactions as $transaction) {
                $this->_arrayTransactions[] = array(
                    'date'           => $this->formatDate($transaction['created_at']),
                    'magento_id'     => $transaction['increment_id'],
                    'pagseguro_id'   => $transaction['transaction_code'],
                    'environment'    => $transaction['environment'],
                    'magento_status' => $this->formatMagentoStatus($transaction['status'], $transaction['partially_refunded']),
                    'order_id'       => $transaction['entity_id']
                );
            }
        }
        return $this->_arrayTransactions;
    }
public function request()
    {
        $transactions = $this->searchTransactions();

        if(count($transactions) > 0) {
            foreach ($transactions as $transaction) {
                $this->_arrayTransactions[] = array(
                    'date'           => $this->formatDate($transaction['created_at']),
                    'magento_id'     => $transaction['increment_id'],
                    'pagseguro_id'   => $transaction['transaction_code'],
                    'environment'    => $transaction['environment'],
                    'magento_status' => $this->formatMagentoStatus($transaction['status'], $transaction['partially_refunded']),
                    'order_id'       => $transaction['entity_id']
                );
            }
        }
        return $this->_arrayTransactions;
    }
public function request ( ) { $ transactions = $ this -> searchTransactions ( ) ; if ( count ( $ transactions ) > 0 ) { foreach ( $ transactions as $ transaction ) { $ this -> _arrayTransactions [ ] = array ( 'date' => $ this -> formatDate ( $ transaction [ 'created_at' ] ) , 'magento_id' => $ transaction [ 'increment_id' ] , 'pagseguro_id' => $ transaction [ 'transaction_code' ] , 'environment' => $ transaction [ 'environment' ] , 'magento_status' => $ this -> formatMagentoStatus ( $ transaction [ 'status' ] , $ transaction [ 'partially_refunded' ] ) , 'order_id' => $ transaction [ 'entity_id' ] ) ; } } return $ this -> _arrayTransactions ; }
Get all transactions and return formatted data

@return array
@throws \Exception
Get all transactions and return formatted data