-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add DUNS number generation #1202
Copy link
Copy link
Open
Labels
c: featureRequest for new featureRequest for new featurem: companySomething is referring to the company moduleSomething is referring to the company modulep: 1-normalNothing urgentNothing urgents: waiting for user interestWaiting for more users interested in this featureWaiting for more users interested in this feature
Milestone
Metadata
Metadata
Assignees
Labels
c: featureRequest for new featureRequest for new featurem: companySomething is referring to the company moduleSomething is referring to the company modulep: 1-normalNothing urgentNothing urgents: waiting for user interestWaiting for more users interested in this featureWaiting for more users interested in this feature
Clear and concise description of the problem
DUNS (Data Universal Numbering System) numbers are unique, nine-digit codes that helps identify businesses. Users of the system include Apple, the US government, the UN, and more. These numbers are standardized worldwide, and it is standard for businesses to have them.
We already have generation for SWIFT codes (banks), IBAN codes (bank accounts), vehicle identification numbers, mongodb object IDs, etc., we should add a company ID generation method. DUNS numbers would be perfect for this, because they are widely used as a public business entity identifier.
I can submit a PR for this issue if it is accepted.
Suggested solution
As DUNS numbers are nine-digit randomly generated numbers, this method can be written as a wrapper around
random.numeric.In the
companymodule, the method should return as follows:faker.company.duns() // "060704780"faker.company.duns() // "059501224"Alternative
No response
Additional context
No response