-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from tecnospeed/feature/cancel
Feature/cancel
- Loading branch information
Showing
25 changed files
with
951 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
require '../vendor/autoload.php'; | ||
|
||
use TecnoSpeed\Plugnotas\Configuration; | ||
use TecnoSpeed\Plugnotas\Nfse; | ||
|
||
try { | ||
// Criando configuração (este objeto é onde você irá colocar seu api-key) | ||
$configuration = new Configuration( | ||
Configuration::TYPE_ENVIRONMENT_SANDBOX, // Ambiente a ser enviada a requisição | ||
'2da392a6-79d2-4304-a8b7-959572c7e44d' // API-Key | ||
); | ||
|
||
$nfse = new Nfse(); | ||
$nfse->setConfiguration($configuration); | ||
$cancelation = $nfse->cancelByCnpjAndIdIntegracao('00000000000191', '000000000001914'); | ||
var_dump($cancelation); | ||
} catch (\Exception $e) { | ||
var_dump($e); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
require '../vendor/autoload.php'; | ||
|
||
use TecnoSpeed\Plugnotas\Configuration; | ||
use TecnoSpeed\Plugnotas\Nfse; | ||
|
||
try { | ||
// Criando configuração (este objeto é onde você irá colocar seu api-key) | ||
$configuration = new Configuration( | ||
Configuration::TYPE_ENVIRONMENT_SANDBOX, // Ambiente a ser enviada a requisição | ||
'2da392a6-79d2-4304-a8b7-959572c7e44d' // API-Key | ||
); | ||
|
||
$nfse = new Nfse(); | ||
$nfse->setConfiguration($configuration); | ||
$cancelation = $nfse->cancel('5c3118127ab98414de5e2bd6'); | ||
var_dump($cancelation); | ||
} catch (\Exception $e) { | ||
var_dump($e); | ||
} | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.