Skip to content

Commit

Permalink
Add support for Saint Lucia iban.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juraj Bubniak committed Jan 5, 2020
1 parent 204a281 commit 655ddd3
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 @@ -378,6 +378,15 @@ var (
bban.NewAccountNumber(13, bban.AlphaNum),
),
},
"LC": {
Name: "Saint Lucia",
Alpha2Code: "LC",
Alpha3Code: "LCA",
Structure: bban.NewStructure(
bban.NewBankCode(4, bban.AlphaUpper),
bban.NewAccountNumber(24, bban.Num),
),
},
"LB": {
Name: "Lebanon",
Alpha2Code: "LB",
Expand Down
8 changes: 8 additions & 0 deletions iban/iban_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,14 @@ var (
bankCode: "1212",
accountNumber: "012345678906",
},
{
iban: "LC55HEMM000100010012001200023015",
countryCode: "LC",
checkDigit: "55",
bban: "HEMM000100010012001200023015",
bankCode: "HEMM",
accountNumber: "000100010012001200023015",
},
}
invalidCases = []struct {
iban string
Expand Down

0 comments on commit 655ddd3

Please sign in to comment.