Add Faker::Company.brazilian_company_alphanumeric - #3307
Conversation
jremes-foss
left a comment
There was a problem hiding this comment.
Hi. Thank you for your contribution. The code itself looks good to me, but it looks like Ruby 3.2 and Ruby 3.3 issues are failing due to issue unrelated to your code. I'm looking to fix it as soon as possible to get the pipelines to run successfully.
|
It seems that the test fails because So, change line 89 out there from Note: Using |
|
@MoacirPetry Thank you - I've analysed the situation and came to the same conclusion. I'll implement a fix. |
|
btw, all The |
|
The last failure in my pull request seems to be an issue with caching inside |
What does this PR do?
Adds
Faker::Company.brazilian_company_alphanumericto generate Brazilian company alphanumeric identification codes (14-character format with two check digits).The alphanumeric CNPJ was introduced through Normative Instruction issued by the Brazilian Federal Revenue Service (Receita Federal) on October 15, 2024. It regulates how the CNPJ registry operates and establishes the transition to the alphanumeric format starting in July 2026.
Usage
How it works
Additional information
The first alphanumeric CNPJ is scheduled to be issued on July 31, 2026. See the reference over here.
The main goal is simple: prevent the exhaustion of available CNPJ numbers.
Every existing numeric CNPJ remains valid.
Simulations and Validations can be tested out over here.
Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]If you're proposing a new generator or locale: