feat(cnpj): suporte ao novo CNPJ alfanumérico (RFB Nota Técnica 49/2024)#731
Closed
gugacyber wants to merge 5 commits into
Closed
feat(cnpj): suporte ao novo CNPJ alfanumérico (RFB Nota Técnica 49/2024)#731gugacyber wants to merge 5 commits into
gugacyber wants to merge 5 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #731 +/- ##
==========================================
- Coverage 99.08% 98.84% -0.25%
==========================================
Files 26 26
Lines 765 779 +14
==========================================
+ Hits 758 770 +12
- Misses 7 9 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
boa noite @gugacyber como comentei no fechamento do teu pr anterior.. já temos um pr resolvendo essa issue. |
Author
|
Boa noite @niltonpimentel02 perdão, não me atentei kk tmj |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
Implementa suporte ao novo formato alfanumérico de CNPJ introduzido pela
Nota Técnica 49/2024 da Receita Federal, com vigência a partir de julho de 2026.
Closes #685
Alterações
is_valid()evalidate()agora aceitam CNPJs alfanuméricos_hashdigit()atualizado para converter letras em valores numéricos (A=10...Z=35)_char_to_val()novo helper para conversão de caractere para valor_is_valid_chars()novo helper para validar caracteres permitidosgenerate()agora aceitaalphanumeric=Truepara gerar CNPJs no novo formatoformat_cnpj()agora formata CNPJs alfanuméricos corretamenteResultados dos testes
Referências