public function getTransactionDetailsForUser($user_id, $count = 10, $paginated_url = null, $page = 1){
        if($paginated_url) {
            $url = $paginated_url;
        }else {
            $url = $this->authenticationService->getServerEndPoint() . Endpoints::VERSION . Endpoints::BASE_WALLET
                . Endpoints::WALLET_TRANSACTIONS_USER . ($paginated_url ? '' : '?page=' . (int) $page);
            $url = sprintf($url, $user_id, $count);
        }

        $result = $this->authenticationService->getTransport()->fetch($url);

        if($result["code"] == APIResponse::RESPONSE_SUCCESS){
            $this->maskData($result['results']['data']);
            $paginatedResult = new PaginatedResults($result['results'],array($this,'getTransactionDetailsForUser'),array($user_id,$count));
            return $paginatedResult;
        }else{
            return new PaginatedResults(array(),null,null);
        }

    }
public function getTransactionDetailsForUser($user_id, $count = 10, $paginated_url = null, $page = 1){
        if($paginated_url) {
            $url = $paginated_url;
        }else {
            $url = $this->authenticationService->getServerEndPoint() . Endpoints::VERSION . Endpoints::BASE_WALLET
                . Endpoints::WALLET_TRANSACTIONS_USER . ($paginated_url ? '' : '?page=' . (int) $page);
            $url = sprintf($url, $user_id, $count);
        }

        $result = $this->authenticationService->getTransport()->fetch($url);

        if($result["code"] == APIResponse::RESPONSE_SUCCESS){
            $this->maskData($result['results']['data']);
            $paginatedResult = new PaginatedResults($result['results'],array($this,'getTransactionDetailsForUser'),array($user_id,$count));
            return $paginatedResult;
        }else{
            return new PaginatedResults(array(),null,null);
        }

    }
public function getTransactionDetailsForUser ( $ user_id , $ count = 10 , $ paginated_url = null , $ page = 1 ) { if ( $ paginated_url ) { $ url = $ paginated_url ; } else { $ url = $ this -> authenticationService -> getServerEndPoint ( ) . Endpoints :: VERSION . Endpoints :: BASE_WALLET . Endpoints :: WALLET_TRANSACTIONS_USER . ( $ paginated_url ? '' : '?page=' . ( int ) $ page ) ; $ url = sprintf ( $ url , $ user_id , $ count ) ; } $ result = $ this -> authenticationService -> getTransport ( ) -> fetch ( $ url ) ; if ( $ result [ "code" ] == APIResponse :: RESPONSE_SUCCESS ) { $ this -> maskData ( $ result [ 'results' ] [ 'data' ] ) ; $ paginatedResult = new PaginatedResults ( $ result [ 'results' ] , array ( $ this , 'getTransactionDetailsForUser' ) , array ( $ user_id , $ count ) ) ; return $ paginatedResult ; } else { return new PaginatedResults ( array ( ) , null , null ) ; } }
Get all transactions for a particular user
@param $user_id
@param int $count
@param null $paginated_url
@param int $page
@return PaginatedResults
@throws Exception
@throws \CodeMojo\Client\Http\InvalidArgumentException
Get all transactions for a particular user