Skip to content

Commit

Permalink
ajuste no método para listar por cnpj; atualizando versão
Browse files Browse the repository at this point in the history
  • Loading branch information
matneves committed Sep 3, 2018
1 parent 0bada52 commit c08db7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simplesvet/enotas",
"version": "2.3",
"version": "2.4",
"description": "eNotasGW API",
"type": "package",
"require": {
Expand Down
10 changes: 5 additions & 5 deletions src/empresaApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ public function consultar($idEmpresa)
}

/**
* Listar empresa por sua Razão Social
* Listar empresa por CNPJ
*
* @param string $razaoSocial
* @param string $cnpj
*/
public function consultarPorRazaoSocial($razaoSocial)
public function consultarPorCnpj($cnpj)
{
return $this->callOperation(array(
'method' => 'GET',
'path' => '/empresas?pageNumber=0&pageSize=1&searchBy=Razao_Social&searchTerm={razaoSocial}',
'path' => '/empresas?pageNumber=0&pageSize=1&searchTerm={cnpj}',
'parameters' => array(
'path' => array(
'razaoSocial' => $razaoSocial
'cnpj' => $cnpj
)
)
));
Expand Down

0 comments on commit c08db7b

Please # to comment.