Skip to content

Commit

Permalink
Merge pull request #3037 from UnitooTeam/fix/condominium_fiscal_code
Browse files Browse the repository at this point in the history
fix condominium_fiscal_code generator length from 9 to 11 characters
  • Loading branch information
stefannibrasil authored Jan 15, 2025
2 parents 789251c + b379861 commit 7acfda6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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"
#
# @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

0 comments on commit 7acfda6

Please sign in to comment.