diff --git a/src/Mollie.Api/Client/ConnectClient.cs b/src/Mollie.Api/Client/ConnectClient.cs index 15ec0c8e..2d6ed22a 100644 --- a/src/Mollie.Api/Client/ConnectClient.cs +++ b/src/Mollie.Api/Client/ConnectClient.cs @@ -12,7 +12,7 @@ namespace Mollie.Api.Client { public class ConnectClient : BaseMollieClient, IConnectClient { private const string AuthorizeEndPoint = "https://my.mollie.com/oauth2/authorize"; - private const string TokenEndPoint = "https://api.mollie.nl/oauth2/"; + private const string TokenEndPoint = "https://api.mollie.com/oauth2/"; private readonly string _clientId; private readonly string _clientSecret; diff --git a/tests/Mollie.Tests.Unit/Client/ConnectClientTests.cs b/tests/Mollie.Tests.Unit/Client/ConnectClientTests.cs index 8a380384..c4e64756 100644 --- a/tests/Mollie.Tests.Unit/Client/ConnectClientTests.cs +++ b/tests/Mollie.Tests.Unit/Client/ConnectClientTests.cs @@ -39,7 +39,7 @@ public async Task GetAccessTokenAsync_WithRefreshToken_ResponseIsDeserializedInE { // Arrange var mockHttp = new MockHttpMessageHandler(); - mockHttp.Expect(HttpMethod.Post, "https://api.mollie.nl/oauth2/tokens") + mockHttp.Expect(HttpMethod.Post, "https://api.mollie.com/oauth2/tokens") .Respond("application/json", defaultGetTokenResponse); HttpClient httpClient = mockHttp.ToHttpClient(); ConnectClient connectClient = new ConnectClient(ClientId, ClientSecret, httpClient); @@ -64,7 +64,7 @@ public async Task RevokeTokenAsync_SendsRequest() { // Arrange var mockHttp = new MockHttpMessageHandler(); - mockHttp.Expect(HttpMethod.Delete, "https://api.mollie.nl/oauth2/tokens") + mockHttp.Expect(HttpMethod.Delete, "https://api.mollie.com/oauth2/tokens") .Respond(HttpStatusCode.NoContent); HttpClient httpClient = mockHttp.ToHttpClient(); ConnectClient connectClient = new ConnectClient(ClientId, ClientSecret, httpClient); diff --git a/tests/Mollie.Tests.Unit/Client/InvoiceClientTests.cs b/tests/Mollie.Tests.Unit/Client/InvoiceClientTests.cs index 07a46e4e..b09c9bd7 100644 --- a/tests/Mollie.Tests.Unit/Client/InvoiceClientTests.cs +++ b/tests/Mollie.Tests.Unit/Client/InvoiceClientTests.cs @@ -19,7 +19,7 @@ public async Task GetInvoiceAsync_DefaultBehaviour_ResponseIsParsed() .Respond("application/json", defaultInvoice); HttpClient httpClient = mockHttp.ToHttpClient(); using InvoiceClient invoiceClient = new InvoiceClient("access_abcde", httpClient); - + // When var result = await invoiceClient.GetInvoiceAsync(invoiceId); @@ -32,7 +32,7 @@ public async Task GetInvoiceAsync_DefaultBehaviour_ResponseIsParsed() result.VatNumber.Should().Be("NL001234567B01"); result.Status.Should().Be("open"); } - + [Theory] [InlineData(null, null, null, null, "")] [InlineData("my-reference", null, null, null, "?reference=my-reference")] @@ -158,12 +158,12 @@ public async Task GetInvoiceListAsync_WithVariousParameters_QueryStringMatchesEx }, ""_links"": { ""self"": { - ""href"": ""https://api.mollie.nl/v2/invoices?limit=5"", + ""href"": ""https://api.mollie.com/v2/invoices?limit=5"", ""type"": ""application/hal+json"" }, ""previous"": null, ""next"": { - ""href"": ""https://api.mollie.nl/v2/invoices?from=inv_xBEbP9rvAq&limit=5"", + ""href"": ""https://api.mollie.com/v2/invoices?from=inv_xBEbP9rvAq&limit=5"", ""type"": ""application/hal+json"" }, ""documentation"": { @@ -172,4 +172,4 @@ public async Task GetInvoiceListAsync_WithVariousParameters_QueryStringMatchesEx } } }"; -} \ No newline at end of file +}