Skip to content
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 isEIN validator #1320

Closed
rubiin opened this issue May 27, 2020 · 10 comments
Closed

add isEIN validator #1320

rubiin opened this issue May 27, 2020 · 10 comments

Comments

@rubiin
Copy link
Member

rubiin commented May 27, 2020

The Employer Identification Number (EIN), also known as the Federal Employer Identification Number (FEIN) or the Federal Tax Identification Number, is a unique nine-digit number assigned by the Internal Revenue Service (IRS) to business entities operating in the United States for the purposes of identification. When the number is used for identification rather than employment tax reporting, it is usually referred to as a Taxpayer Identification Number (TIN), and when used for the purposes of reporting employment taxes, it is usually referred to as an EIN.[1] These numbers are used for tax administration and must be not used for any other purpose. For example, the EIN should not be used in tax lien auction or sales, lotteries, etc.

https://en.wikipedia.org/wiki/Employer_Identification_Number

@rubiin
Copy link
Member Author

rubiin commented May 27, 2020

@profnandaa @ezkemboi I can do a pr

@profnandaa
Copy link
Member

Do we have similar ones for other locales other than US?

@rubiin
Copy link
Member Author

rubiin commented May 27, 2020

according to wiki, it is only appliccable fo US, but widely used in US

@profnandaa
Copy link
Member

Any way we can make this more generic to allow later additions of other locales? That's in the naming of the validator...

@rubiin
Copy link
Member Author

rubiin commented May 28, 2020

yeah sure, i will write in a way so it can be extended in future @profnandaa

@profnandaa
Copy link
Member

Which name do we go with here?

@rubiin
Copy link
Member Author

rubiin commented May 29, 2020

I think Employee identification number , EIN is the best

@profnandaa
Copy link
Member

profnandaa commented May 29, 2020

Can we go with Taxpayer ID (TID), could make sense to anyone off the bat, and I can see equivalents for other locations. So isTaxID(str, locale). What do you think?

@rubiin
Copy link
Member Author

rubiin commented May 29, 2020

sure that should do

@profnandaa
Copy link
Member

Cool, you can go ahead with the PR.

@rubiin rubiin mentioned this issue May 30, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants