Skip to content

Commit

Permalink
Add support for Greenland iban.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juraj Bubniak committed Jan 3, 2020
1 parent 2cea448 commit 8ff2d91
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions country/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ var (
bban.NewAccountNumber(15, bban.AlphaNum),
),
},
"GL": {
Name: "Greenland",
Alpha2Code: "GL",
Alpha3Code: "GRL",
Structure: bban.NewStructure(
bban.NewBankCode(4, bban.Num),
bban.NewAccountNumber(10, bban.Num),
),
},
"GR": {
Name: "Greece",
Alpha2Code: "GR",
Expand Down
8 changes: 8 additions & 0 deletions iban/iban_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ var (
accountNumber: "000163163",
nationalCheckDigit: "4",
},
{
iban: "GL8964710001000206",
countryCode: "GL",
checkDigit: "89",
bban: "64710001000206",
bankCode: "6471",
accountNumber: "0001000206",
},
{
iban: "GR1601101250000000012300695",
countryCode: "GR",
Expand Down

0 comments on commit 8ff2d91

Please sign in to comment.