Skip to content

Commit

Permalink
feat: updated Wikipedia provider, which updates validation patterns f…
Browse files Browse the repository at this point in the history
…or Dominican Republic (DO), Georgia (GE), Ireland (IE), Jordan (JO), Pakistan (PK), Palestinian territories (PS), Turkey (TR), British Virgin Islands (VG) and Burundi (BI).
  • Loading branch information
skwasjer committed Apr 15, 2023
1 parent 0f52dfd commit 5ee06f3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## v5.8.1

- Upgraded SWIFT registry to Feb '23 release 93, which adds Somalia (SO) and fixes some misconfiguration for Finland (FI) removing the need for 'some' patching (no regression).
- Updated Wikipedia provider, which updates validation patterns for Dominican Republic (DO), Georgia (GE), Ireland (IE), Jordan (JO), Pakistan (PK), Palestinian territories (PS), Turkey (TR), British Virgin Islands (VG) and Burundi (BI).

## v5.8.0

Expand Down
40 changes: 20 additions & 20 deletions src/IbanNet/Registry/Wikipedia/WikipediaRegistryProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ namespace IbanNet.Registry.Wikipedia;
/// <para>
/// Generated from: https://en.wikipedia.org/wiki/International_Bank_Account_Number
/// Page ID: 15253
/// Rev ID: 1129118526
/// Rev ID: 1145025467
/// </para>
/// </remarks>
[GeneratedCode("WikiRegistryProviderT4", "1.15253-1129118526")]
[GeneratedCode("WikiRegistryProviderT4", "1.15253-1145025467")]
public class WikipediaRegistryProvider : IIbanRegistryProvider
{
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
Expand Down Expand Up @@ -166,8 +166,8 @@ private static IEnumerable<IbanCountry> Load()
{
NativeName = "República Dominicana",
EnglishName = "Dominican Republic",
Iban = new IbanStructure(new IbanWikipediaPattern("4a,20n")),
Bban = new BbanStructure(new WikipediaPattern("4a,20n"), 4)
Iban = new IbanStructure(new IbanWikipediaPattern("4c,20n")),
Bban = new BbanStructure(new WikipediaPattern("4c,20n"), 4)
};

yield return new IbanCountry("TL")
Expand Down Expand Up @@ -230,8 +230,8 @@ private static IEnumerable<IbanCountry> Load()
{
NativeName = "საქართველო",
EnglishName = "Georgia",
Iban = new IbanStructure(new IbanWikipediaPattern("2c,16n")),
Bban = new BbanStructure(new WikipediaPattern("2c,16n"), 4)
Iban = new IbanStructure(new IbanWikipediaPattern("2a,16n")),
Bban = new BbanStructure(new WikipediaPattern("2a,16n"), 4)
};

yield return new IbanCountry("DE")
Expand Down Expand Up @@ -302,8 +302,8 @@ private static IEnumerable<IbanCountry> Load()
{
NativeName = "Ireland",
EnglishName = "Ireland",
Iban = new IbanStructure(new IbanWikipediaPattern("4c,14n")),
Bban = new BbanStructure(new WikipediaPattern("4c,14n"), 4)
Iban = new IbanStructure(new IbanWikipediaPattern("4a,6n,8n")),
Bban = new BbanStructure(new WikipediaPattern("4a,6n,8n"), 4)
};

yield return new IbanCountry("IL")
Expand All @@ -326,8 +326,8 @@ private static IEnumerable<IbanCountry> Load()
{
NativeName = "الأردن",
EnglishName = "Jordan",
Iban = new IbanStructure(new IbanWikipediaPattern("4a,22n")),
Bban = new BbanStructure(new WikipediaPattern("4a,22n"), 4)
Iban = new IbanStructure(new IbanWikipediaPattern("4a,4n,18c")),
Bban = new BbanStructure(new WikipediaPattern("4a,4n,18c"), 4)
};

yield return new IbanCountry("KZ")
Expand Down Expand Up @@ -478,16 +478,16 @@ private static IEnumerable<IbanCountry> Load()
{
NativeName = "پاکستان",
EnglishName = "Pakistan",
Iban = new IbanStructure(new IbanWikipediaPattern("4c,16n")),
Bban = new BbanStructure(new WikipediaPattern("4c,16n"), 4)
Iban = new IbanStructure(new IbanWikipediaPattern("4a,16c")),
Bban = new BbanStructure(new WikipediaPattern("4a,16c"), 4)
};

yield return new IbanCountry("PS")
{
NativeName = "السلطة الفلسطينية",
EnglishName = "Palestinian territories",
Iban = new IbanStructure(new IbanWikipediaPattern("4c,21n")),
Bban = new BbanStructure(new WikipediaPattern("4c,21n"), 4)
Iban = new IbanStructure(new IbanWikipediaPattern("4a,21c")),
Bban = new BbanStructure(new WikipediaPattern("4a,21c"), 4)
};

yield return new IbanCountry("PL")
Expand Down Expand Up @@ -630,8 +630,8 @@ private static IEnumerable<IbanCountry> Load()
{
NativeName = "Türkiye",
EnglishName = "Turkey",
Iban = new IbanStructure(new IbanWikipediaPattern("5n,17c")),
Bban = new BbanStructure(new WikipediaPattern("5n,17c"), 4)
Iban = new IbanStructure(new IbanWikipediaPattern("5n,1n,16c")),
Bban = new BbanStructure(new WikipediaPattern("5n,1n,16c"), 4)
};

yield return new IbanCountry("UA")
Expand Down Expand Up @@ -670,8 +670,8 @@ private static IEnumerable<IbanCountry> Load()
{
NativeName = "British Virgin Islands",
EnglishName = "Virgin Islands, British",
Iban = new IbanStructure(new IbanWikipediaPattern("4c,16n")),
Bban = new BbanStructure(new WikipediaPattern("4c,16n"), 4)
Iban = new IbanStructure(new IbanWikipediaPattern("4a,16n")),
Bban = new BbanStructure(new WikipediaPattern("4a,16n"), 4)
};

yield return new IbanCountry("DZ")
Expand Down Expand Up @@ -710,8 +710,8 @@ private static IEnumerable<IbanCountry> Load()
{
NativeName = "Burundi",
EnglishName = "Burundi",
Iban = new IbanStructure(new IbanWikipediaPattern("12n")),
Bban = new BbanStructure(new WikipediaPattern("12n"), 4)
Iban = new IbanStructure(new IbanWikipediaPattern("5n,5n,11n,2n")),
Bban = new BbanStructure(new WikipediaPattern("5n,5n,11n,2n"), 4)
};

yield return new IbanCountry("CV")
Expand Down

0 comments on commit 5ee06f3

Please sign in to comment.