forked from umbrellaTech/ya-arquivo-remessa
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #1 from r4faelaugusto/remessa-bancodobrasil
Remessa bancodobrasil
- Loading branch information
Showing
23 changed files
with
580 additions
and
209 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ vendor | |
bin | ||
build | ||
composer.lock | ||
coverage.clover | ||
coverage.clover | ||
.idea |
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 |
---|---|---|
@@ -1,9 +1,17 @@ | ||
## Biblioteca ainda em versão alpha. Não usar em ambiente de produção. | ||
|
||
# ya-arquivo-remessa | ||
|
||
Biblioteca para geração de arquivos de remessa. | ||
### Versão 0.3 | ||
|
||
* Biblioteca para geração de arquivos de remessa. | ||
|
||
|
||
| Banco | Carteira | done? | | ||
|------------- | -------------| -------------| | ||
| Bradesco | 09 | X | ||
| Bradesco | 09 | X | | ||
| Banco do Brasil | 17 | X | | ||
| SICOOB | | ||
| CEF | | ||
|
||
|
||
![](https://raw.githubusercontent.com/r4faelaugusto/ya-arquivo-remessa/remessa-bancodobrasil/sequenceDiagram.png) | ||
> Diagrama de sequencia |
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 |
---|---|---|
|
@@ -13,12 +13,16 @@ | |
|
||
use \Exception; | ||
use \Throwable; | ||
use Umbrella\Ya\RemessaBoleto\Cnab\RemessaFactory; | ||
use Umbrella\Ya\RemessaBoleto\RemessaFactory; | ||
use Umbrella\Ya\RemessaBoleto\Enum\BancoEnum; | ||
|
||
echo "<a href='?banco=" . BancoEnum::BRADESCO ."'>Bradesco</a>"; | ||
echo "<br/>"; | ||
echo "<a href='?banco=" . BancoEnum::SICOOB . "'>SICOOB</a>"; | ||
echo "<br/>"; | ||
echo "<a href='?banco=" . BancoEnum::CEF . "'>Caixa Economica Federal</a>"; | ||
echo "<br/>"; | ||
echo "<a href='?banco=" . BancoEnum::BANCO_DO_BRASIL . "'>Banco do Brasil</a>"; | ||
echo "<hr>"; | ||
|
||
if (!$_GET['banco']) {return;} | ||
|
@@ -72,9 +76,9 @@ | |
"digitoConta" => 2, | ||
"carteira" => [ | ||
"carteira" => 23, | ||
"banco" => 237, | ||
"banco" => 104, | ||
"nome" => "09", | ||
"arquivo" => "Bradesco (Com Registro)" | ||
"arquivo" => "CAIXA (Com Registro)" | ||
] | ||
] | ||
], | ||
|
@@ -162,6 +166,88 @@ | |
"tipoPessoa" => null, | ||
"passaporte" => null, | ||
] | ||
], | ||
1 => [ | ||
"dam" => 1201076, | ||
"tipoDocumento" => 2, | ||
"tipoOrigem" => 2, | ||
"taxa" => [ | ||
"taxa" => 273, | ||
"convenioBancario" => [ | ||
"convenioBancario" => 229, | ||
"cedente" => "0000002", | ||
"orgao" => 1707, | ||
"carteira" => 23, | ||
"convenio" => "492XX31", | ||
"agencia" => "3XX9", | ||
"digitoAgencia" => 7, | ||
"conta" => 16065, | ||
"digitoConta" => 2 | ||
], | ||
"valorFixo" => false, | ||
], | ||
"isPago" => false, | ||
"nossoNumero" => "00000000668", | ||
"numeroDocumento" => 668, | ||
"linhaDigitavel" => "29993739019000000006868001606505874730000020000", | ||
"representacaoNumerica" => null, | ||
"valor" => "200.00", | ||
"desconto" => "0.00", | ||
"multa" => null, | ||
"juros" => null, | ||
"correcaoMonetaria" => "0.00", | ||
"dataEmissao" => "2018-02-22 00:00:00", | ||
"dataVencimento" => "2018-03-24", | ||
"baixa" => false, | ||
"pessoa" => [ | ||
"pessoa" => 3723770, | ||
"municipio" => [ | ||
"nome" => "", | ||
"uf" => [ "sigla" => "PB" ] | ||
], | ||
"nome" => "SERG DE OLIVE", | ||
"cpfCnpj" => "59123788768", | ||
"identidade" => "038123234", | ||
"orgaoEmissor" => "SSP", | ||
"ufEmissor" => 100133, | ||
"dtEmissao" => null, | ||
"dtNascimento" => "1959-01-28", | ||
"sexo" => "M", | ||
"mae" => null, | ||
"pai" => null, | ||
"nacionalidade" => 105, | ||
"endereco" => "AVENIDA DAS AMERICAS", | ||
"numero" => "700", | ||
"complemento" => "BLOCO 4", | ||
"bairro" => "BARRA DA TIJUCA", | ||
"distrito" => null, | ||
"cep" => "22640100", | ||
"email" => "[email protected]", | ||
"dddTelefone" => "11", | ||
"telefone" => "33051172", | ||
"dddFax" => null, | ||
"fax" => null, | ||
"dtCadastro" => "2018-02-22 09:18:48", | ||
"tipoLogradouro" => null, | ||
"pais" => null, | ||
"estadoCivil" => null, | ||
"pessoaJunta" => null, | ||
"municipioNaturalidade" => null, | ||
"ufNaturalidade" => null, | ||
"emancipado" => null, | ||
"motivoEmancipacao" => null, | ||
"caixaPostal" => null, | ||
"ddiTelefone" => null, | ||
"ddiFax" => null, | ||
"nire" => null, | ||
"registroCartorio" => null, | ||
"anoRegistroCartorio" => null, | ||
"cartorio" => null, | ||
"nomeComarca" => null, | ||
"tipoDocumento" => null, | ||
"tipoPessoa" => null, | ||
"passaporte" => null, | ||
] | ||
] | ||
] | ||
] | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.