public function getAuths(CardPayments\Authorization $auth = null, CardPayments\Filter $filter = null)
    {
        $queryStr = array();
        if($auth && $auth->merchantRefNum) {
            $queryStr['merchantRefNum'] = $auth->merchantRefNum;
        }
        if($filter) {
            if(isset($filter->limit)) {
                $queryStr['limit'] = $filter->limit;
            }
            if(isset($filter->offset)) {
                $queryStr['offset'] = $filter->offset;
            }
            if(isset($filter->startDate)) {
                $queryStr['startDate'] = $filter->startDate;
            }
            if(isset($filter->endDate)) {
                $queryStr['endDate'] = $filter->endDate;
            }
        }
        $request = new Request(array(
             'method' => Request::GET,
             'uri' => $this->prepareURI("/auths"),
             'queryStr' => $queryStr
        ));

        $response = $this->client->processRequest($request);

        return new CardPayments\Pagerator($this->client, $response, '\Paysafe\CardPayments\Authorization');
    }
public function getAuths(CardPayments\Authorization $auth = null, CardPayments\Filter $filter = null)
    {
        $queryStr = array();
        if($auth && $auth->merchantRefNum) {
            $queryStr['merchantRefNum'] = $auth->merchantRefNum;
        }
        if($filter) {
            if(isset($filter->limit)) {
                $queryStr['limit'] = $filter->limit;
            }
            if(isset($filter->offset)) {
                $queryStr['offset'] = $filter->offset;
            }
            if(isset($filter->startDate)) {
                $queryStr['startDate'] = $filter->startDate;
            }
            if(isset($filter->endDate)) {
                $queryStr['endDate'] = $filter->endDate;
            }
        }
        $request = new Request(array(
             'method' => Request::GET,
             'uri' => $this->prepareURI("/auths"),
             'queryStr' => $queryStr
        ));

        $response = $this->client->processRequest($request);

        return new CardPayments\Pagerator($this->client, $response, '\Paysafe\CardPayments\Authorization');
    }
public function getAuths ( CardPayments \ Authorization $ auth = null , CardPayments \ Filter $ filter = null ) { $ queryStr = array ( ) ; if ( $ auth && $ auth -> merchantRefNum ) { $ queryStr [ 'merchantRefNum' ] = $ auth -> merchantRefNum ; } if ( $ filter ) { if ( isset ( $ filter -> limit ) ) { $ queryStr [ 'limit' ] = $ filter -> limit ; } if ( isset ( $ filter -> offset ) ) { $ queryStr [ 'offset' ] = $ filter -> offset ; } if ( isset ( $ filter -> startDate ) ) { $ queryStr [ 'startDate' ] = $ filter -> startDate ; } if ( isset ( $ filter -> endDate ) ) { $ queryStr [ 'endDate' ] = $ filter -> endDate ; } } $ request = new Request ( array ( 'method' => Request :: GET , 'uri' => $ this -> prepareURI ( "/auths" ) , 'queryStr' => $ queryStr ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new CardPayments \ Pagerator ( $ this -> client , $ response , '\Paysafe\CardPayments\Authorization' ) ; }
Get matching authorizations.

@param CardPayments\Authorization $auth
@param CardPayments\Filter $filter
@return CardPayments\Authorization[] iterator
@throws PaysafeException
Get matching authorizations .