Skip to content

Commit

Permalink
[MAIN][UPD] - Atualizando os endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio Alexssandro Lino committed Jul 12, 2021
1 parent 8f73679 commit 6b4027d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/NotaFacil/Services/NSFeConsultNotaFacil.php
@@ -0,0 +1,29 @@
<?php
namespace NotaFacil\Nfse\Services;


use NotaFacil\Common\Traits\RequestTrait;
use NotaFacil\Common\Services\BaseService;
use NotaFacil\Common\Resources\NotaFacilResource;
/**
* Class responsible for the in the Nota Fácil API.
*/
class NSFeConsultNotaFacil extends BaseService
{
use RequestTrait;

public function __construct(Array $credentialsNotaFacil)
{
parent::__construct();
$this->credentialsNotaFacil = $credentialsNotaFacil;
}

public function consultRPS($payload): NotaFacilResource
{
return $this->request( $this->base_url() . $this->endpoint->nfse->consultRPS, 'POST', $payload );
}




}
10 changes: 10 additions & 0 deletions src/NotaFacil/Services/NSFeNotaFacil.php
Expand Up @@ -42,6 +42,16 @@ public function cancelIssue($payload): NotaFacilResource
{
return $this->request( $this->base_url() . $this->endpoint->nfse->cancelIssue, 'POST', $payload);
}

public function listAll(): NotaFacilResource
{
return $this->request( $this->base_url() . $this->endpoint->nfse->listAll);
}

public function showByID($idNFSe): NotaFacilResource
{
return $this->request( $this->base_url() . str_replace(':id', $idNFSe , $this->endpoint->nfse->byID));
}



Expand Down

0 comments on commit 6b4027d

Please sign in to comment.