{"action":"created","issue":{"url":"https://api.github.com/repos/lk-geimfari/elizabeth/issues/62","repository_url":"https://api.github.com/repos/lk-geimfari/elizabeth","labels_url":"https://api.github.com/repos/lk-geimfari/elizabeth/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/lk-geimfari/elizabeth/issues/62/comments","events_url":"https://api.github.com/repos/lk-geimfari/elizabeth/issues/62/events","html_url":"https://github.com/lk-geimfari/elizabeth/issues/62","id":196941268,"number":62,"title":"Add CNPJ and CPF generator to Brazil localization","user":{"login":"martini97","id":18130319,"avatar_url":"https://avatars.githubusercontent.com/u/18130319?v=3","gravatar_id":"","url":"https://api.github.com/users/martini97","html_url":"https://github.com/martini97","followers_url":"https://api.github.com/users/martini97/followers","following_url":"https://api.github.com/users/martini97/following{/other_user}","gists_url":"https://api.github.com/users/martini97/gists{/gist_id}","starred_url":"https://api.github.com/users/martini97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martini97/subscriptions","organizations_url":"https://api.github.com/users/martini97/orgs","repos_url":"https://api.github.com/users/martini97/repos","events_url":"https://api.github.com/users/martini97/events{/privacy}","received_events_url":"https://api.github.com/users/martini97/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-21T14:07:37Z","updated_at":"2016-12-21T14:34:21Z","closed_at":null,"body":"Would you mind if I added a CPF (for person) and CNPJ (for companies) to the brazilian location?"},"comment":{"url":"https://api.github.com/repos/lk-geimfari/elizabeth/issues/comments/268536926","html_url":"https://github.com/lk-geimfari/elizabeth/issues/62#issuecomment-268536926","issue_url":"https://api.github.com/repos/lk-geimfari/elizabeth/issues/62","id":268536926,"user":{"login":"lk-geimfari","id":15812620,"avatar_url":"https://avatars.githubusercontent.com/u/15812620?v=3","gravatar_id":"","url":"https://api.github.com/users/lk-geimfari","html_url":"https://github.com/lk-geimfari","followers_url":"https://api.github.com/users/lk-geimfari/followers","following_url":"https://api.github.com/users/lk-geimfari/following{/other_user}","gists_url":"https://api.github.com/users/lk-geimfari/gists{/gist_id}","starred_url":"https://api.github.com/users/lk-geimfari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lk-geimfari/subscriptions","organizations_url":"https://api.github.com/users/lk-geimfari/orgs","repos_url":"https://api.github.com/users/lk-geimfari/repos","events_url":"https://api.github.com/users/lk-geimfari/events{/privacy}","received_events_url":"https://api.github.com/users/lk-geimfari/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T14:34:21Z","updated_at":"2016-12-21T14:34:21Z","body":"@martini97 If find on wikipedia some information about CNPJ and CPF.\r\n\r\nSo... `CNPJ consists of a 14-digit number formatted as 00.000.000/0001-00`\r\n\r\nIt's can be generated using `identifier()` of `Personal()` provider or with `custom_code()` of `Code()` provider.\r\n\r\nUsing `identifier()`\r\n```python\r\n>>> from elizabeth import Personal\r\n>>> p = Personal('pt-br')\r\n\r\n>>> mask = \"##.###.###/###1-##\"\r\n>>> p.identifier(mask=mask)\r\n'97.370.304/1621-56'\r\n>>> \r\n```\r\nUsing `custom_code()`:\r\n```python\r\n>>> from elizabeth import Code\r\n>>> code = Code('pt-br')\r\n \r\n>>> mask = \"##.###.###/####-##\"\r\n>>> code.custom_code(mask=mask)\r\n'48.613.965/8831-32'\r\n```\r\n\r\nSimilarly for CPF.\r\n"}}
{"actor":{"display_login":"lk-geimfari"}}