-
-
Notifications
You must be signed in to change notification settings - Fork 882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DUNS number generation #1202
Comments
What options could be provided for this method? I was thinking about: formatType: Description for Description for readableType: Example for |
Waiting for user interest. |
For the |
Would love to look at contributing by adding this when the interest is there |
Thank you for your feature proposal. We marked it as "waiting for user interest" for now to gather some feedback from our community:
We would also like to hear about other community members' use cases for the feature to give us a better understanding of their potential implicit or explicit requirements. We will start the implementation based on:
We do this because:
|
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
company
module, the method should return as follows:faker.company.duns() // "060704780"
faker.company.duns() // "059501224"
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: