Skip to content

Commit

Permalink
Add support for Egypt. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuyanxiang0321 authored Jul 6, 2020
1 parent fe210fc commit fe10c71
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions country/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,16 @@ var (
bban.NewNationalCheckDigit(1, bban.Num),
),
},
"EG": {
Name: "Egypt",
Alpha2Code: "EG",
Alpha3Code: "EGY",
Structure: bban.NewStructure(
bban.NewBankCode(4, bban.Num),
bban.NewBranchCode(4, bban.Num),
bban.NewAccountNumber(17, bban.Num),
),
},
"FI": {
Name: "Finland",
Alpha2Code: "FI",
Expand Down
9 changes: 9 additions & 0 deletions iban/iban_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ var (
accountNumber: "0075470",
nationalCheckDigit: "34",
},
{
iban: "EG800002000156789012345180002",
countryCode: "EG",
checkDigit: "80",
bban: "0002000156789012345180002",
bankCode: "0002",
branchCode: "0001",
accountNumber: "56789012345180002",
},
{
iban: "FO6264600001631634",
countryCode: "FO",
Expand Down

0 comments on commit fe10c71

Please sign in to comment.