diff --git a/src/RobinTTY.NordigenApiClient.Tests/LiveApi/CredentialTests.cs b/src/RobinTTY.NordigenApiClient.Tests/LiveApi/CredentialTests.cs index 3230ffc..92a98f1 100644 --- a/src/RobinTTY.NordigenApiClient.Tests/LiveApi/CredentialTests.cs +++ b/src/RobinTTY.NordigenApiClient.Tests/LiveApi/CredentialTests.cs @@ -77,8 +77,8 @@ public async Task ExecuteRequestWithUnauthorizedToken() Assert.Multiple(() => { AssertionHelpers.AssertNordigenApiResponseIsUnsuccessful(response, HttpStatusCode.Unauthorized); - AssertionHelpers.AssertBasicResponseMatchesExpectations(response.Error, "Invalid token", - "Token is invalid or expired"); + AssertionHelpers.AssertBasicResponseMatchesExpectations(response.Error, "Authentication failed", + "No active account found with the given credentials"); }); } diff --git a/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/AccountsEndpointTests.cs b/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/AccountsEndpointTests.cs index 129edef..a2608a4 100644 --- a/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/AccountsEndpointTests.cs +++ b/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/AccountsEndpointTests.cs @@ -91,7 +91,7 @@ public async Task GetTransactions() { var matchesAll = true; matchesAll &= t.BankTransactionCode == "PMNT"; - matchesAll &= t.DebtorAccount?.Iban == "GL2010440000010445"; + matchesAll &= t.DebtorAccount?.Iban == "GL8240830000040838"; matchesAll &= t.DebtorName == "MON MOTHMA"; matchesAll &= t.RemittanceInformationUnstructured == "For the support of Restoration of the Republic foundation"; diff --git a/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/AgreementsEndpointTests.cs b/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/AgreementsEndpointTests.cs index 691883c..015b1b1 100644 --- a/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/AgreementsEndpointTests.cs +++ b/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/AgreementsEndpointTests.cs @@ -193,11 +193,7 @@ await _apiClient.AgreementsEndpoint.CreateAgreement(null!, uint.MaxValue, uint.M Assert.That(response.Error!.InstitutionIdError!.Summary, Is.EqualTo("This field is required.")); Assert.That(response.Error!.InstitutionIdError!.Detail, Is.EqualTo("This field is required.")); - Assert.That(response.Error!.AccessValidForDaysError!.Summary, - Is.EqualTo("Incorrect access_valid_for_days")); - Assert.That(response.Error!.AccessValidForDaysError!.Detail, - Is.EqualTo("access_valid_for_days must be > 0 and <= 180")); - + Assert.That(response.Error!.AccessValidForDaysError!, Is.Null); Assert.That(response.Error!.AgreementError, Is.Null); Assert.That(response.Error!.AccessScopeError, Is.Null); Assert.That(response.Error!.MaxHistoricalDaysError, Is.Null); diff --git a/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/RequisitionsEndpointTests.cs b/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/RequisitionsEndpointTests.cs index d7ad853..75de8d1 100644 --- a/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/RequisitionsEndpointTests.cs +++ b/src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/RequisitionsEndpointTests.cs @@ -189,10 +189,6 @@ await _apiClient.RequisitionsEndpoint.CreateRequisition("", redirect, agreementI { AssertionHelpers.AssertNordigenApiResponseIsUnsuccessful(response, HttpStatusCode.BadRequest); - Assert.That(response.Error!.AccountSelectionError!.Summary, Is.EqualTo("Account selection not supported")); - Assert.That(response.Error!.AccountSelectionError!.Detail, - Is.EqualTo("Account selection not supported for ")); - Assert.That(response.Error!.AgreementError!.Summary, Is.EqualTo("Incorrect Institution ID ")); Assert.That(response.Error!.AgreementError!.Detail, Is.EqualTo( @@ -204,11 +200,6 @@ await _apiClient.RequisitionsEndpoint.CreateRequisition("", redirect, agreementI Assert.That(response.Error!.ReferenceError!.Summary, Is.EqualTo("This field may not be blank.")); Assert.That(response.Error!.ReferenceError!.Detail, Is.EqualTo("This field may not be blank.")); - Assert.That(response.Error!.SocialSecurityNumberError!.Summary, - Is.EqualTo("SSN verification not supported")); - Assert.That(response.Error!.SocialSecurityNumberError!.Detail, - Is.EqualTo("SSN verification not supported for ")); - Assert.That(response.Error!.UserLanguageError!.Summary, Is.EqualTo("Provided user_language is invalid or not supported")); Assert.That(response.Error!.UserLanguageError!.Detail, diff --git a/src/RobinTTY.NordigenApiClient/RobinTTY.NordigenApiClient.csproj b/src/RobinTTY.NordigenApiClient/RobinTTY.NordigenApiClient.csproj index e67dcbd..956ad93 100644 --- a/src/RobinTTY.NordigenApiClient/RobinTTY.NordigenApiClient.csproj +++ b/src/RobinTTY.NordigenApiClient/RobinTTY.NordigenApiClient.csproj @@ -16,9 +16,10 @@ Nordigen; API; client $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/release-notes.txt")) MIT - 9.0.0 + 10.0.0 true snupkg + 12f53312-dcef-47c5-bc2e-0ce6f74609a6