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 support for German tax id number [PAY-1199] #12

Merged
merged 1 commit into from
Sep 1, 2017

Conversation

MuhistheHolvi
Copy link

German tax id number is one of the required identifiers that can be used by German freelancers to identify themselves.
Issue:
We don't have a validator for this number.

Solution:
Implement a validator.

# First digit in the number should not be zero.
if number_list[0] == '0':
raise InvalidFormat()
# within the first ten digits one number has to appear exactly twice or

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this requirement specified somewhere in documentation?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wikipedia article mentioned in the module docstring.

Copy link

@holvi-anastasiia holvi-anastasiia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants