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 Bank.iban_country_code. #2248

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Conversation

mastermatt
Copy link
Contributor

@mastermatt mastermatt commented Jan 29, 2021

Closes: #2244

Description:

As described in the ticket, there is currently no way to randomly get a valid IBAN across countries.
The new method returns a random ISO 3166 code for a country that uses the IBAN system.
Updates Bank.iban to use a random country code when the country_code param is passed as nil.

The new method returns a random ISO 8601 code for a country that uses the IBAN system.
Updates `Bank.iban` to use a random country code when the `country_code` param is passed as `nil`.
@koic
Copy link
Member

koic commented Feb 24, 2021

The new method returns a random ISO 8601 code for a country that uses the IBAN system.

I think it's ISO 3166, not ISO 8601, but overall it looks good 👍

@mastermatt
Copy link
Contributor Author

ISO 8601 🤦🏼 at least I used the right code in the actual change set.

@koic koic merged commit 03053c6 into faker-ruby:master Feb 24, 2021
@koic
Copy link
Member

koic commented Feb 24, 2021

Thanks!

@mastermatt mastermatt deleted the iban-country-code branch February 24, 2021 04:13
This was referenced Mar 12, 2021
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A way to select a valid IBAN country
2 participants