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

fix condominium_fiscal_code generator length from 9 to 11 characters #3037

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/faker/default/finance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ def stock_market
##
# Returns a random condominium fiscal code.
#
# @param country [String] Two capital letter country code to use for the vat number.
# @param country [String] Two capital letter country code to use for the condominium fiscal code number.
# @return [String]
#
# @example
# Faker::Finance.condominium_fiscal_code #=> "012345678"
# Faker::Finance.condominium_fiscal_code #=> "01234567890"
FiloSpaTeam marked this conversation as resolved.
Show resolved Hide resolved
#
# @faker.version next
def condominium_fiscal_code(country: 'IT')
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/en/finance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ en:
- /6771#########{5,6}L/
- /6709#########{5,6}L/
condominium_fiscal_code:
IT: "#########"
IT: "###########"
vat_number:
AT: "ATU########"
AR: "AR###########"
Expand Down
Loading