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

PSD2 compatibility #28

Merged
merged 15 commits into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bankinfo/bank_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ func FindByBankID(bankID string) BankInfo {
// of a given bank institute. The institute is referenced by its BankID.
type BankInfo struct {
BankID string
BIC string
VersionNumber string
URL string
VersionName string
Institute string
City string
LastChanged string
}

// HbciVersion tries to parse the HBCI version out of VersionName and
Expand Down
8 changes: 5 additions & 3 deletions bankinfo/bank_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func Test_ParseBankInfos(t *testing.T) {
VersionName: "FinTS V3.0",
Institute: "Postbank",
City: "Berlin",
LastChanged: "30.04.2015",
},
{
BankID: "10020200",
Expand All @@ -36,6 +37,7 @@ func Test_ParseBankInfos(t *testing.T) {
VersionName: "FinTS V3.0",
Institute: "BHF-Bank AG",
City: "Berlin",
LastChanged: "",
},
},
},
Expand All @@ -58,9 +60,9 @@ func Test_ParseBankInfos(t *testing.T) {

func TestFindByBankId(t *testing.T) {
data = []BankInfo{
BankInfo{BankID: "1000000", URL: "1"},
BankInfo{BankID: "2000000", URL: "2"},
BankInfo{BankID: "3000000", URL: "3"},
{BankID: "1000000", URL: "1"},
{BankID: "2000000", URL: "2"},
{BankID: "3000000", URL: "3"},
}

var url string
Expand Down
Loading