public function convertLead($leadId, $data, $params = [], $options = [])
    {
        $params['leadId'] = $leadId;

        return $this->call('convertLead', $params, $data, $options);
    }
public function convertLead($leadId, $data, $params = [], $options = [])
    {
        $params['leadId'] = $leadId;

        return $this->call('convertLead', $params, $data, $options);
    }
public function convertLead ( $ leadId , $ data , $ params = [ ] , $ options = [ ] ) { $ params [ 'leadId' ] = $ leadId ; return $ this -> call ( 'convertLead' , $ params , $ data , $ options ) ; }
Implements convertLead API method.

@param string $leadId  Id of the lead
@param array $data     xmlData represented as an array
array will be converted into XML before sending the request
@param array $params   request parameters
newFormat 1 (default) - exclude fields with null values in the response
2 - include fields with null values in the response
version   1 (default) - use earlier API implementation
2 - use latest API implementation
@param array $options Options to add for configurations [optional]

@return Response The Response object
Implements convertLead API method .